Jig to Insert Block Modify Properties then Drag or Rotate

Jig to Insert Block Modify Properties then Drag or Rotate

SRSDS
Advisor Advisor
691 Views
1 Reply
Message 1 of 2

Jig to Insert Block Modify Properties then Drag or Rotate

SRSDS
Advisor
Advisor

I've spent hours on this and stumped. Hope someone can help.

 

I've tried

 Inserting the block and changing the properties before a jig.

Changing properties within a jig displays the right block but not the right grips

Changing properties during  and after the jig. 

 

Either the block is drawn correctly with incorrect grip points or the other way around. 

 

The best example I have found is here but doesn't deal with modifying block properties.

 

 

 There was a bug in the posted code.  The Else stopped the rotation jig from starting.

                   If vRotationUse = True Then
                        Else
                            ' Start a new Jig for the rotation..
                            jig.JigPromptCounter = 1
                            res = ed.Drag(jig)
                        End If

 

Baffled.

0 Likes
Accepted solutions (1)
692 Views
1 Reply
Reply (1)
Message 2 of 2

SRSDS
Advisor
Advisor
Accepted solution

I think I found an answer here. Seems like a sensible workaround.

http://forums.autodesk.com/t5/NET/Dynamic-Block-Properties-Stop-Working-After-NET-Edited/td-p/248902...

 

After the jig I need to delete the block reference, create a new one using  the position and angle returned from the jig and then set the parameter values. 

0 Likes