CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 5073

CAD tip CAD tip # 13333:

   
Question CAD 
 %  platform  category 
Q - question

"Zero length line" warnings or misplaced vertices when importing vertex coordinates from scripts.

A - answer Entering commands and numeric values, e.g. coordinates from scripts (.scr, SCRIPT) follows similar rules as manual input from the keyboard or bulk input of commands from the Windows clipboard.

For example, the entered coordinates may be subject to the currently set osnap mode, and thus the points entered may be "snapped" to existing geometry depending on the contents of the drawing and the current zoom.

To avoid this risk, it is recommended to disable osnaps (OSNAP = 0) before entering data from the script (or clipboard).

It is also sufficient to set the OSNAPCOORD variable - the value of this variable determines whether the coordinate entered from the keyboard/script or the current osnap mode takes precedence.

  • 0 - the current osnap mode overrides the coordinates entered from the keyboard
  • 1 - coordinates entered from keyboard or script override the current osnap mode
  • 2 - coordinates entered from keyboard override current osnap mode except for scripts

So the "correct" value for this purpose is 1.

ACADACLT
100% *  CAD 
20.5.2022    413×  
Prices - CAD eShop:
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 12926:How to import point coordinates from Excel to AutoCAD?
Tip 10709:How to create a profile from imported XYZ points in Fusion 360?
Tip 10167:Keyboard shortcuts in Autodesk Fusion 360.
Tip 7329:Draw 3D polyline by length, azimuth, slope.
Tip 6606:How to create AutoCAD geometry from Excel?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
DwgTextTranslator translates a series of drawings from one language to another using MS Access.
Download a fully functional trial version.


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist