- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
REC DUCT LENTH TAGS
Is there a way to set up text for rectangular duct throat lengths and radius elbows rather than having to manually input them?
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
It looks likely you are not using any ducting add-on.
Theoretically speaking, there are 2 ways to get text/size of throat:
1) Measure the line lengths on an existing duct object then place text that matching what you got;
2) Draw new duct piece then obtain the throat size from your input of the duct.
If I understand your question correctly, you are after the 1st option.
Here is an example:
(defun c:DuctThroat (/ ThroatLine1 Ent01 ThroatLine1_1stPt ThroatLine1_2ndPt Throat1 ThroatLine2 Ent02 ThroatLine2_1stPt ThroatLine2_2ndPt Throat2 PlaceText) (setq ThroatLine1 (car (entsel "\nSelect 1st line: "))) (setq Ent01 (entget ThroatLine1)) (setq ThroatLine1_1stPt (cdr (assoc 10 Ent01))) (setq ThroatLine1_2ndPt (cdr (assoc 11 Ent01))) (setq Throat1 (distance ThroatLine1_1stPt ThroatLine1_2ndPt)) (setq ThroatLine2 (car (entsel "\nSelect 2nd line: "))) (setq Ent02 (entget ThroatLine1)) (setq ThroatLine2_1stPt (cdr (assoc 10 Ent02))) (setq ThroatLine2_2ndPt (cdr (assoc 11 Ent02))) (setq Throat2 (distance ThroatLine2_1stPt ThroatLine2_2ndPt)) (setq PlaceText (getpoint "\nInsert throat size: ")) (command "._text" PlaceText "" "" (strcat (rtos Throat1 2 0) "x" (rtos Throat2 2 0))) (princ) ); end of defun
Note: This code measures lines only, not polylines.
HTH
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
How do I use the code you show? I tried imputing it in the AC command line but it gave error replys.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
1) Copy my code to NotePad then save it as ThroatSize.lsp
2) Move this file to
C:\USERS\YourName\APPDATA\ROAMING\AUTODESK\AUTOCAD MECHANICAL 2014\R19.1\ENU\ACADM
(Note: Your AutoCAD version may be different to mine but the path should be very similar.)
3) In AutoCAD Click "Load Application..." under "Tools" tab (or type _appload in command line), after Selecting ThroatSize.lsp then click "Load" button then "Close".
4) Now you are ready to use the code - type DuctThroat (not case sensitive) in the command line then click your "Enter" key.
5) Follow the instructions showed in the command line - you should be fine.
HTH
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Drop the file to the "support" folder showed on your screenshot.
HTH
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
I loaded and used it but it could be a conflict of versions. Here is what it said.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Sorry, based on your original question I thought it was a 2d object.
3d drawing would be a different story.
= ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ = ♪ = ♫ =
A circle is the locus of a cursor, starting and ending at the same point on a plane in model space or in layout such that its distance from a given coordinates (X,Y) is always constant.
X² + Y² = C²
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar