11-17-2024
11:04 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
11-17-2024
11:04 PM
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")
...