Sketchline in respect to assembly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello Forum,
Working with objects and their proxies have always been a challange for me.
Previously I asked how to find the 'native object' from a sketchline you select from a top assembly
Now I'm stuck trying to do the exact opposite
I have an automation that creates railings on platforms
You select the line:
and a railing is created
Now I want to find any intersecting lines from the assembly.
Finding this one:
When I create a platform, I create an object in which I store the 4 sketchlines it's created with.
But these sketchlines are in respect of the place document (an IPT, the green surface)
I need them from the respect of the assembly or I can't compare the geometry of them, since one is the X Y Z from its IPT and the other is from the assembly
Problem in short:
You have a assembly with 1 part
in that part you have 1 sketch with 1 sketchline
ilogic:
Dim odoc as partdocument = thisdoc.document
Dim oline as sketchline = odoc.componentdefinition.sketches(1).Sketchlines(1)
How to get the proxy of oline from the assembly?