
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
Author |
Topic Search Topic Options
|
pschultz
Newbie
Joined: 12.Mar.2011
Location: United States
Using: Autocad 2010
Status: Offline
Points: 12
|
Topic: 3D BLOCK NEEDED - TOTE TANK Posted: 18.Mar.2011 at 20:01 |
No trouble. Yeah, it's OLD but it still works like a champ in A2k10!!!
|
Pat
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 18.Mar.2011 at 19:58 |
I got distracted and the window was left open. Sorry to put you through so much trouble.
Yikes! I remember Cadence magazine! I guess we are both over 21. LOL
Thanks.
Edited by John Connor - 18.Mar.2011 at 20:02
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
pschultz
Newbie
Joined: 12.Mar.2011
Location: United States
Using: Autocad 2010
Status: Offline
Points: 12
|
Posted: 18.Mar.2011 at 19:50 |
Think I missed the window. Here it is:
;From CADENCE Magazine November, 1990 ;Page 151
(defun C:lntopipe( / pre trad erad elist plist etyp enam vtx ang angbi edist ydist stp p1 p2 p3 lnam cp1 ax axpt) (setvar "cmdecho" 0) (setvar "blipmode" 0) (setq pre (getvar "ucsicon")) (setvar "ucsicon" 0) (setvar "osmode" 0) (command "ucs" "w") (prompt "\n3D pipe with elbows") (prompt "\nby Ted Schaefer - SEA Tulsa, OK") (initget (+ 1 2 3 8)) (setq trad (/ (getreal "\nPipe diameter: ") 2)) (initget (+ 1 2 3 8)) (setq erad (getreal "\nElbow radius: ")) (setq elist (entget (car (entsel "\nPick 3D/2D polyline: "))) etyp (cdr (assoc 0 elist))) (if (/= etyp "POLYLINE")(*error* "Not a 2D/3D polyline")) (setq enam (entnext (cdr (assoc -1 elist))) elist (entget enam) plist (list (cdr (assoc 10 elist))) enam (entnext enam) elist (entget enam)) (while (= (cdr (assoc 0 elist)) "VERTEX") (setq vtx (list (cdr (assoc 10 elist))) plist (append plist vtx) enam (entnext enam) elist (entget enam))) (setq ll (length plist) cntr 0) (setq p1 (nth cntr plist) p2 (nth (+ cntr 1) plist) p3 (nth (+ cntr 2) plist) stp p1) (repeat (- ll 3) (command "UCS" "3P" (wu p2) (wu p1) (wu p3)) (setq ang (angle (wu p2) (wu p3)) angbi (/ ang 2) edist (/ erad (tan angbi)) ydist (/ erad (sin angbi))) (command "ucs" "za" (wu p2) (wu p1)) (setq cp1 (uw (list 0 0 edist))) (command "circle" (wu cp1) trad) (setq cnam (entlast)) (command "line" (wu cp1) (wu stp) "" ) (setq lnam (entlast)) (command "tabsurf" (list cnam (wu cp1)) (list lnam (wu cp1))) (entdel lnam) (command "UCS" "3" (wu p2) (wu p1) (wu p3)) (command "ucs" "3" (list 0 0 0) (list 0 0 1)(polar (list 0 0 0) angbi 1)) (command "line" (list 0 ydist 0)(polar (getvar "lastpoint") 0 1) "") (setq ax (entlast) axpt (uw (list 0 ydist 0)) ang (* (- pi ang) (/ -180 pi))) (command "revsurf" (list cnam (wu cp1)) (list ax (wu axpt)) 0 ang) (entdel cnam)(entdel ax) (command "ucs" "za" (wu p2) (wu p3)) (setq cntr (+ 1 cntr) stp (uw (list 0 0 edist)) p1 (nth cntr plist) p2 (nth (+ cntr 1) plist) p3 (nth (+ cntr 2) plist)) ) (command "UCS" "3" (wu p2) (wu p1) (wu p3)) (setq ang (angle (wu p2) (wu p3)) angbi (/ ang 2) edist (/ erad (tan angbi)) ydist (/ erad (sin angbi))) (command "ucs" "za" (wu p2) (wu p1)) (setq cp1 (uw (list 0 0 edist))) (command "circle" (wu cp1) trad) (setq cnam (entlast)) (command "line" (wu cp1) (wu stp) "" ) (setq lnam (entlast)) (command "tabsurf" (list cnam (wu cp1)) (list lnam (wu cp1))) (entdel lnam) (command "UCS" "3" (wu p2) (wu p1) (wu p3)) (command "ucs" "3" (list 0 0 0) (list 0 0 1)(polar (list 0 0 0) angbi 1)) (command "line" (list 0 ydist 0)(polar (getvar "lastpoint") 0 1) "") (setq ax (entlast) axpt (uw (list 0 ydist 0)) ang (* (- pi ang) (/ -180 pi))) (command "revsurf" (list cnam (wu cp1)) (list ax (wu axpt)) 0 ang) (entdel ax)(entdel cnam) (command "ucs" "za" (wu p3) (wu p2)) (command "circle" '(0 0 0) trad) (setq cnam (list (entlast) '(0 0 0))) (command "line" '(0 0 0) (list 0 0 (- (distance p3 p2) edist)) "" ) (setq lsel (list (entlast) '(0 0 0))) (command "tabsurf" cnam lsel) (command "erase" lsel cnam "") (setvar "ucsicon" pre) (command "UCS" "w") (Prompt "\nUCS now reset to world") (princ))
(defun uw (p1)(trans p1 1 0)) (defun wu (p1)(trans p1 0 1)) (defun tan ( a )(/ (sin a) (cos a))) (defun *error* (msg) (princ msg)(princ))
|
Pat
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 18.Mar.2011 at 19:29 |
I have unblocked my private email address for the next 10 minutes. You may send the lisp file using it. After 10 minutes I block it again. By my clock it is 2:27 p.m. on the east coast of the U.S. Go.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
pschultz
Newbie
Joined: 12.Mar.2011
Location: United States
Using: Autocad 2010
Status: Offline
Points: 12
|
Posted: 18.Mar.2011 at 19:21 |
I'm no engineer so I let the locals design for weight and stress and I just show them WHERE we need the supports.
Where can I send or upload the lntopipe.lsp?
|
Pat
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 18.Mar.2011 at 19:11 |
That LNTOPIPE.lsp sounds very interesting. I just finished the existing piperack itself which was constructed entirely of angle (2x2.5, 2x2, 1.5x15 all 0.25 thick). Now I'm working on adding the existing supports (two of them). I'm not worried about one of the supports because I designed it myself as a part of another job using 4" square tube x 0.375 wall but the other is an original support consisting of 2.5 square tubing x 0.25 wall. It stands 15 feet high ("H" shaped) which is OK in and of itself but the amount of piping the company has added on over the years makes me worried that it is now under-designed for the weight it is holding.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
pschultz
Newbie
Joined: 12.Mar.2011
Location: United States
Using: Autocad 2010
Status: Offline
Points: 12
|
Posted: 18.Mar.2011 at 18:53 |
Being in chemical mfg business, we deal w/ pipe racks alot. Know what you are talking about. I have a great .lsp routine called LNTOPIPE.LSP that will flesh out a simple 3d polyline into 3d piping with your desired diameter and radii. It's great! And fast! Let me know if you want it.
Boss just back from 5 week operation in China. New plant going up that I helped design. Am designing a mfg plant in Peru and doing some 3D work on production areas, hence the totes.
I design mfg, whs and offices (new and remodel) all over the world from US to Australia, being that I am the only Space Planner/Designer at corporate HQ for our company. My DWGs then go to local architects for shop DWG production OR to local contractors, bypassing any further DWG enhancement, for build out. VERY busy! Not much time to play with 3D and such so is a real treat when I can take a few minutes. Sometimes is necessary to convey image to upper management for visualization.
Have many other 3D blocks I will upload when get a chance. Boss going back to China in 1 week so will be getting what he needs before he leaves. Then can breath again.
|
Pat
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 17.Mar.2011 at 13:25 |
Following your lead I took the plunge and uploaded my version of a 550 gallon tote bin with cover, vent, lock ring, drain pipe and valve. I saved it to AutoCAD 2000 file format. I did not render it. Although I would someday like to try my hand at adding materials and rendering it just isn't part of what I need to do in my day-to-day job.
Currently I am working on a rehab of a 40 year old pipe rack. It is under designed for the number of pipes it is currently holding, the placement of the pipe runs make walking the rack dangerous, and the supports on one end are undersized. My job is to document what we have now and come up with a way of making it stronger, safer and easier for the pipe fitters to work off of. I am tracing pipes, identifying them and reproducing the pipe rack in 3D. If there were any drawings they were lost so I also have to field measure everything I need to draw which includes the pipe rack itself, all the pipes/conduits (25), and the supports at either end. The rack connects two process buildings and is approximately 50 feet long.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 17.Mar.2011 at 12:13 |
I checked out your tote bin. It's a different type than what I am used to seeing where I work, most notably the top. I can see where your block would work well in a 1:200 drawing. Just enough detail to define the tote but not so much that it adds appreciably to the overall file size if dozens of totes were placed in a drawing.
I'm located in Connecticut. Where are you located?
I should probably upload my tote at some point. I also have a nice 3D drawing of a level probe that I've been meaning to upload as well.
Thanks for sharing.
So, what's our next assignment? LOL
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 17.Mar.2011 at 11:47 |
I too had some initial troubles and I think it was as a result of my inquires that the thread I provided the link to was initiated. I'll go check out your 3D-TOTE.dwg right now. Thanks.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |