how to set the UCS as respective of two point in C#.net

how to set the UCS as respective of two point in C#.net

kite15
Advocate Advocate
1,376 Views
4 Replies
Message 1 of 5

how to set the UCS as respective of two point in C#.net

kite15
Advocate
Advocate

Hi,

 

Can any one help how to set the UCS as respective of two point using C# (see the snap).

 

and return as after running main code .....

 

Thanks in advance..

 

0 Likes
Accepted solutions (2)
1,377 Views
4 Replies
Replies (4)
Message 2 of 5

kerry_w_brown
Advisor
Advisor
Accepted solution

Have a look here from Gilles :

 

https://forums.autodesk.com/t5/net/problem-with-ucs-vectors/m-p/2651940#M18410

 

Regards,


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 3 of 5

kite15
Advocate
Advocate

Hi _Kdub,

 

Its works fine, Can you please, more help on this. The UCS icon visibility, also be control. Actually, whenever the UCS icon set to the new position the visibility, of the UCS will be invisible....Smiley Indifferent

 

Tried: 

 

ViewportTableRecord VpTblRec = tr.GetObject(doc.Editor.ActiveViewportId, OpenMode.ForWrite) as ViewportTableRecord;

acVportTblRec.IconEnabled = false;

 

not succeed

 

Thanks in advance

0 Likes
Message 4 of 5

_gile
Consultant
Consultant
Accepted solution

Hi,

 

You can simply set the UCSICON system variable to suit your needs.

 

Application.SetSystemVariable("UCSICON", 0);

 

 



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 5 of 5

kite15
Advocate
Advocate

Thank you .....Smiley Happy

0 Likes