Need to Restrict block rotation through jigging in autocad c#

Need to Restrict block rotation through jigging in autocad c#

Anonymous
Not applicable
424 Views
1 Reply
Message 1 of 2

Need to Restrict block rotation through jigging in autocad c#

Anonymous
Not applicable

Hi,

I have Two Ploylines intersection at one point. At That intersection point i need place block and it should jig along with either one polyline or other polyline. I need to place parallel to one polyline or other. 

 

For more information please check attachment.

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

norman.yuan
Mentor
Mentor

Moving/rotating entity along a given path with a jig only requires a bit of math calculation in the custom implemented Sampler() method to correctly the entity's position/rotation at given mouse cursor position (likely obtained from JigPrompts.AcquirePoint()).

 

One of my blog articles posted quite a few years back might be of help:

 

https://drive-cad-with-code.blogspot.com/2012/03/moving-entity-along-curve.html

 

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes