InsertionPoint and ConstraintStatus of SketchBlock
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Even so I do use 2D Sketch Blocks I don't like the limitation regarding possibility to add/change the insert point.
I also disturbed with fact that I never saw the fully constrained Sketch Block.
I believe the quantity of dimensions needed to fully constrain the Block depends on whether insert point was set (two for blocks without insert point and four for those with insert point).
However, when I try to determine the presence of Insert point in Block by iLogic:
Dim compDef = ThisDoc.Document.ComponentDefinition
Dim msgBody As String
For Each skbd In compDef.SketchBlockDefinitions
msgBody &= vbLf & vbTab & skbd.Name & ", " & ".InsertPoint: " & If(skbd.InsertionPoint Is Nothing, "-", "+")
Next
msgBox(msgBody, , "Block quantity = " & compDef.SketchBlockDefinitions.Count)
I get the positive result even for empty blocks.
I create empty block performing the below steps:
1. Create new IPT-file
2. Create new 2D Sketch, create a circle, Call "Create Block" command, select the circle for Geometry and save the Block with OK button
3. Close the Sketch
4. Call Create Block command from context menu of Block node in Model Browser.
5. Run the above iLogic rule and get message with "+" in each line....
What I'm missing?
Please vote for Inventor-Idea Text Search within Option Names