CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
Cesky English Deutsch
 Visitors: 3578 

CAD tip CAD tip # 12310:

Question CAD 
 %  platform  category 
Q - question

How to check if a dimension is associative or not? (LISP)

A - answer 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)
  (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: ")))

100% *  CAD 
10.7.2019    1571×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
Tip 11989:How to dimension an ellipse in AutoCAD?
Tip 11823:Associative dimensions in drawing views of a 3D model in AutoCAD.
Tip 8710:Annotation monitor in AutoCAD 2013.
Tip 8411:My associative dimensions are not being updated.
Tip 7954:AutoCAD 2012: Generate 2D drawing views from 3D models.

Back   All CAD Tips All CAD tips&tricks

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   

Add .CIT raster format support to AutoCAD and Map and Civil 3D
CITin More info

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