- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi!
I´m trying to figure out a problem all day now and I am really frustrated by now, so I hope someone can help me out. I want to automate the process of adding section views to a sheet. To ensure consistency over a range of possible product variations, I had the idea of adding a sketch in the 3D Model that is always at the right place. This sketch could then be inherited into the drawing, which represents a straight line in the drawing which then could be used to create the section view. When doing it by hand, everything works fine, but I can´t figure out how to reference the sketch when adding a section view via iLogic. The command requires a DrawingSketch object, however the sketch that I want to use from the model and is a planar sketch. I access it through the ReferencedDocument member, which disconnects it from the drawing, so it makes sense that it isn´t a DrawingSketch. This however makes it so it doesn´t work with the command. I can´t figure out how to access inherited sketches in the drawing, as the Sketches enumerator from the sheet and from the view are both empty. Is there a way to access the inherited drawings from the model that are shown on a sheet/a drawing view? If so, how?
Thanks in advance!
Solved! Go to Solution.