Over 1.099.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the new precise Engineering calculator.
New AutoCAD 2026 commands and variables.
Discussion forum
?CAD discussions, advices, exchange of experience

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply ![]() |
Author | |
NAOb ![]() Newbie ![]() Joined: 24.May.2012 Location: Germany Using: AutoCAD2011 Status: Offline Points: 2 |
![]() Posted: 24.May.2012 at 14:08 |
Hi,
I'm trying to create a sundial (board, stick, shadow) for various locations with a script file. Coordinates are created by an Excel program and then copied into the script. When I write in the script (language is German) Three layers - board, lines & stick do exist already in the drawing: **************************************************** layer setzen lines _line 0,0,0 -22.2875183144474,321.778370435386,0 _line 0,0,0 -22.2875183144474,335.01274086895,0 _line 0,0,0 -22.2875183144474,376.256663758475,0 _line 0,0,0 -22.2875183144474,452.878332884713,0 _line 0,0,0 -22.2875183144474,582.031947045679,0 _line 0,0,0 -22.2875183144474,767.757653870612,0 _line 0,0,0 -22.2875183144474,884.034198085051,0 **************************************************** All is well, but when I start differently: **************************************************** layer setzen board _box -500,-100,-10 500,900,0 layer setzen stick _cylinder 0,-6.13672013486127,-5 3 a 0,226.439166442356,184.495269024905 layer setzen lines _line 0,0,0 -22.2875183144474,321.778370435386,0 _line 0,0,0 -22.2875183144474,335.01274086895,0 _line 0,0,0 -22.2875183144474,376.256663758475,0 _line 0,0,0 -22.2875183144474,452.878332884713,0 _line 0,0,0 -22.2875183144474,582.031947045679,0 _line 0,0,0 -22.2875183144474,767.757653870612,0 _line 0,0,0 -22.2875183144474,884.034198085051,0 ************************************************ The lines do not start from 0,0,0 as I would expect, but from a point near the stick. And the longest line does not make sense at all. Any idea where I go wrong? Regards Norbert |
|
![]() |
|
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2124 |
![]() |
Your endpoints may get "osnapped" to the existing geometry. Try to switch off osnaps (OSNAP=0).
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
NAOb ![]() Newbie ![]() Joined: 24.May.2012 Location: Germany Using: AutoCAD2011 Status: Offline Points: 2 |
![]() |
Thanks,
it worked, even if it doesn't makes any sense. In this German installation of AutoCAD the osnap = ofang = F3 Thanks again. |
|
![]() |
|
Vladimir Michl ![]() Moderator Group ![]() Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2124 |
![]() |
If you mean that script-generated coordinates shouldn't be influenced by OSNAP, check the OSNAPCOORD variable (should be > 0).
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,117 seconds.