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: 6069
Plex.Earth connects AutoCAD and Google Earth

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)
 (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    6381×  
Prices - CAD eShop:
applies to: AutoCAD ·

See also:
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.
Tip 8710:Annotation monitor in AutoCAD 2013.


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:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


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