Plant 3D API/C# Question

Plant 3D API/C# Question

jmartensBGRRW
Contributor Contributor
3,428 Views
4 Replies
Message 1 of 5

Plant 3D API/C# Question

jmartensBGRRW
Contributor
Contributor

Hello! 

 

I am new to AutoCAD Plant 3D/API/C# and have been trying to go thru examples and came across 

Autodesk Developer Network - Plant3D Training Material. My question is from Lab_04 and I have attached a zip file with the code in a text file for your reference.

I am stuck trying to access the "LineNumberTag". I can see the LineNumberTag information ("INTOCAD001") while running in debug mode, but it shows up in a "Dynamic View" and I am not sure how to access it using C# code. 

I took some screenshots of what I am looking at in the hopes that it will resonate with someone that will be able to assist me.

 

Thank you for your help and time in advance!

 

 

jmartensBGRRW_2-1674084213522.png

 

 

 

0 Likes
Accepted solutions (1)
3,429 Views
4 Replies
Replies (4)
Message 2 of 5

daniel_cadext
Advisor
Advisor

could be properties using C#'s dynamic keyword, I don't have much experience with it, here's my first attempt

at goofing around with it, maybe will give you inspiration.

https://www.theswamp.org/index.php?topic=55916

 

Python for AutoCAD, Python wrappers for ARX https://github.com/CEXT-Dan/PyRx
Message 3 of 5

jabowabo
Mentor
Mentor
Accepted solution

You can retrieve all part properties, including LineNumberTag, using DataLinksManager.GetAllProperties.

Message 4 of 5

jmartensBGRRW
Contributor
Contributor
Hi Daniel!
Thank you for your suggestion. I was looking at taking the "dynamic" approach, but I discovered it was a little over my head.
0 Likes
Message 5 of 5

jmartensBGRRW
Contributor
Contributor
Hi Jason,
Thank you very much for posting the DataLinksManager.GetAllProperties information.
I actually did try searching on the AutoCAD DevBlog website but did not have any luck.
0 Likes