Aug 8, 2007 #1 jrice174 Civil/Environmental Joined Nov 8, 2004 Messages 129 Location US I have a routine that asks the user to select 2 points. I need to have the precision to 4 decimals but if they have the drawing units set to 2 decimals I don't get accurate data. How can I change the drawing units using VBA?
I have a routine that asks the user to select 2 points. I need to have the precision to 4 decimals but if they have the drawing units set to 2 decimals I don't get accurate data. How can I change the drawing units using VBA?
Aug 10, 2007 #2 borgunit Mechanical Joined Jul 26, 2002 Messages 1,153 Location US ThisDrawing.SetVariable "LUPREC", 4 Using AutoCAD Mechanical 2006, UGNX4, XPsp2, MSOffice 2K3 http://mechcad-insider.blogspot.com/ "The fear of the Lord is the beginning of wisdom" Upvote 0 Downvote
ThisDrawing.SetVariable "LUPREC", 4 Using AutoCAD Mechanical 2006, UGNX4, XPsp2, MSOffice 2K3 http://mechcad-insider.blogspot.com/ "The fear of the Lord is the beginning of wisdom"
Aug 10, 2007 Thread starter #3 jrice174 Civil/Environmental Joined Nov 8, 2004 Messages 129 Location US Thnaks so much. That does it. Upvote 0 Downvote