Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IfcValue #1311

Open
PavelWhiteTiger opened this issue Dec 18, 2023 · 2 comments
Open

IfcValue #1311

PavelWhiteTiger opened this issue Dec 18, 2023 · 2 comments

Comments

@PavelWhiteTiger
Copy link

PavelWhiteTiger commented Dec 18, 2023

How i can add IfcValue (IfcPositiveLengthMeasure, IfcLengthMeasure) in BendingParameters?
When i try create IfcLengthMeasure, bimServer writes "Invalid cid".

Example:
{
var instance = Ifc4Factory.eINSTANCE;
var ifcLengthMeasure = instance.createIfcLengthMeasure();
ifcLengthMeasure.setWrappedValue(Double.parseDouble((String) o));
meshType.getBendingParameters().add(param);
}

model.getClient().getMetaDataManager().getPackageMetaData("ifc4").getEClass("IfcPositiveLengthMeasure")
doesn't work too

@hlg
Copy link
Member

hlg commented Jan 10, 2024

Could you post the stacktrace? "doesn't work" is not very specific. Also, your code also does not show what's in the param variable. Are you using the Java client with the recordChanges option set to true?

@hlg
Copy link
Member

hlg commented Nov 27, 2024

"Invalid cid" is only reported when CID is -1, which is the case for an OID of -1.

I think this is related to #1254 and #1225.

Just like IfcPropertyListValue.ListValues in #1254, IfcReinforcingMeshType.BendingParameters provides another example of defined type attributes with higher multiplicity and low level methods not yet supporting this case properly.

Just like #1225, this seems to appear with the Java client and its experimental use of the low level calls.

It would be great to expand this into a full consistent test case for when we have time to work on the low level interfaces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants