Hi Everybody,
I'm looking for a way to use the functions in property sets to calculate the length of an extruded 3d solid.
I'm working with projects where the solid 3d information is exported to .ifc format beacause we are working in a construction project where they are not able to use landXML. I would like to have a formula which automatically would read the length/height of extrusion so the exported object would contain relevant data.
The first problem is that I have no idea where to start. I would like to write the function myself but I'm not able to find any source where they provide tips for this. I could do the math but I cannot:
I'm using C3D 2016 with productivity pack 1,2 and 3 installed. The property sets tool is in the productivity pack 2 but at the moment I'm only able to add the data with "manual property definition".
Below a couple screenshots from the tool and where I think would be possible to write the function if only I would know what to write.
Any kind of help would be appreciated.
Best regard,
Paavo Hurskainen
I am also interested in such things, why no experts on this?
Hello! I need to solve the same problem. I believe the solution is simple, but I have not yet found an intuitive list of the functions and methods available for this in the 2023 version in the documentation
I tried to adapt an old code but it didn't work. Anyway, it goes below for registration
RESULT="--"
On Error Resume Next
Set oApp=GetObject(, "AutoCAD.Application")
Set oCivilApp=oApp.GetInterfaceObject("AeccXUiLand.AeccApplication.13.5")
Set obj=oCivilApp.ActiveDocument.HandleToObject("[07_Objeto_Handle]")
RESULT=obj.PartDataRecord.GetHeight()
Hello! Yes I know it's wrong but my goal is to get the height of the solid and not the material. What would be the correct method for this purpose? More than that, what are the functions and methods applicable to civil 3D solids?
This line for civil pipe network not cad solid
RESULT=obj.PartDataRecord.
Can you attached example drawing
And
Which version of the civil 3d is used?
Yes, I'm working with 3d solids and my goal is to configure some specific properties of these objects in a custom PSet.
I'm using civil 3d 2023
I am think , that 3d solid not supported by
Reference Guide (ActiveX) enough
https://help.autodesk.com/view/OARX/2022/ENU/?guid=GUID-5D302758-ED3F-4062-A254-FB57BAB01C44
So , you need using api .net to read 3d solid and put value in The right place