Hi All,
It seems that the "Classification Code" property for a "Code Set Style" Item is not exposed?
Has anyone found anything about that?
I have been searching for a while now and found that all properties, except the Classification Code, are available with .NET API.
I have also looked at .COM or ObjectArx but couldn't find anything.
This would be really useful because the "ClassificationCode" shape data can be used in a "Property Set".
The "description" can not be used in a property set so that is not an alternative.
Solved! Go to Solution.
Solved by Jeff_M. Go to Solution.
Mmm strange.
I have an Autocad add-in project solution in VS with references to the 2019 ObjectArx. The "Classification" property is missing in there.
I needed the Classification Code property in Dynamo so I tried the ".ClassificationCode" property but that did not exist.
I googled "Classification" a lot but I did not find anything. Where did you find that?
I looked into the docs folder in the ObjectArx CHM files but got lost a little bit...
Maybe I gave that up to fast
EDIT:
I tried the "Classification" property in Dynamo inside Civil 3D 2021
I can't find any API reference to the Civil 3D API 2021. The last one I found is 2019
The screenshot I took was in the C3D 2022 API:
https://help.autodesk.com/view/CIV3D/2022/ENU/?guid=2d4d0e3b-a88b-0eb1-3bc8-36ed8af9df03
Using the ObjectBrowser in VisualStudio with a C3D 2020 project loaded, I see that the Classification property is not included in that release. So it appears it was added for C3D 2022.
For civil 3d dynamo or python script
From here
https://forum.dynamobim.com/t/createoffsetalignment-python-script-fatal-error/65426/6?u=hosneyalaa
It has something to do with the new CPython3 wrapper.
Python code that worked in Civil 3D 2021 and previous versions, now suddenly doesn't work anymore.
It doesn't matter what's wrong with the code, I always get the same error:
Line 92 is in this case the line with "t.Commit"
It errors always on the line with "t.Commit()", whatever the real issue is.
This makes it very hard to debug and find out why CPython is not happy with my code.
WHEN and IF I succeed in adapting my code and can confirm the "Classification" property works, I'll mark this topic as solved.
PS:
I get this error too:
Can't find what you're looking for? Ask the community or share your knowledge.