CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

CAD tip CAD tip # 12310:

Question

CAD 
 %  platform  category 
A
Using the following LISP function you can verify whether the given dimension entity is associative or disassociated. The function returns nil or the number of the associative point.

; returns nil or assoc point number (1, 2, 3=both)
(defun isDimAssoc? (diment / elst dict)
 (and
  (setq elst (entget diment))
  (setq dict (cdr (assoc 360 elst)))
  (setq elst (entget dict))
  (setq elst (entget (cdr (assoc 360 elst))))
 )
 (cdr (assoc 90 elst))
)

Use this function e.g. this way:

(isdimassoc? (car (entsel "\nPick the dimension to check associativity: ")))

ACAD
100% *CAD
10.7.2019    8143×  
applies to: AutoCAD ·

See also:
Tip 14615:How to create negative dimensions in AutoCAD?
Tip 13552:Differential dimension X,Y
Tip 13426:Use of alternative units for arithmetic in dimensions (without square brackets).
Tip 11989:How to dimension an ellipse in AutoCAD?
Tip 11823:Associative dimensions in drawing views of a 3D model in AutoCAD.


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
  



Featuring:
Export 3D VRML scenes from AutoCAD and Inventor
VRMLout More info


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