Drawing parameters in edit section

Drawing parameters in edit section

donaldleigh
Advocate Advocate
238 Views
1 Reply
Message 1 of 2

Drawing parameters in edit section

donaldleigh
Advocate
Advocate

Evening all

 

When you create a section view you have the option to edit it and constrain the sketch. Is there a way to control these parameters though iLogic

 

Donald

0 Likes
239 Views
1 Reply
Reply (1)
Message 2 of 2

WCrihfield
Mentor
Mentor

Hi @donaldleigh.  A drawing section view always includes a sketch to define the section line geometry.  When creating a SectionDrawingView by iLogic, using the DrawingVeiws.AddSectionView method, you must supply a sketch as one of the input variables.  And when retrieving an existing SectionDrawingView object, that object has a Sketches property that will contain any sketches used to define the section line geometry.  Since that property is plural, it returns a DrawingSketches object, which is like a collection of drawing sketches, so you will have to get one of its items to get the actual DrawingSketch itself.  Once you have that sketch object, you can edit its geometry, add or remove geometric constraints, add or remove dimensional constraints as needed using the appropriate iLogic codes for doing those things.

 

If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.

If you want and have time, I would appreciate your Vote(s) for My IDEAS 💡or you can Explore My CONTRIBUTIONS

Wesley Crihfield

EESignature

(Not an Autodesk Employee)