Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
Michael.Navara
in reply to: 1210550275

You can use Attributes API, or iLogic.

If you want to use iLogic, you need to convert variable part to ICadDocument. Below is the sample how to do it.

This code can replace line 3 and 7 in above sample.

...
Dim part As PartDocument = drw.ReferencedDocuments(1)
Dim partCadDoc = New CadDoc(part)
Dim partEdge = partCadDoc.NamedEntities.TryGetEntity("Edge1")
...