CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage 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.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedAutomatic design based on variables

 Post Reply Post Reply Page  123>
Author
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Topic: Automatic design based on variables
    Posted: 11.Aug.2016 at 17:19

Hi Alex,

Found some time to write something for you.

Please use the standard drawing that you posted (or the Panel_Inch attached), the lisp is based on that drawing.

The Lisp i wrote will "stretch" the lenght and width.
If Gap is required open the lisp (notepad) and check this rule "If Gap required set Lgap 0.00 to 0.05 or Up"
 
Load the lisp with Appload and type STRPLA on the command bar to Run.
 
Hope that this will help you.
 
Regards
 
 
 
ps i am used to the metric system Cool and decimal settings.
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 02.Aug.2016 at 13:18
Kent Cooper has brought up some very valid points.  Can we get some response?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
Kent Cooper View Drop Down
Senior Member
Senior Member


Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 686
Direct Link To This Post Posted: 01.Aug.2016 at 20:22
Originally posted by alexjahrens alexjahrens wrote:

Hi all,
.... Basically, I need this shape to fit inside overall customer dimensions of Length and Width. To do this, I add or subtract length to the red and blue lines only - I don't touch the black lines. ....
Anyone know how to go about doing this? ....
That should be able to be automated, but (whether you're going for something like an AutoLisp routine or a dynamic Block) questions arise.  For instance, in this image, should the C dimensions remain constant (as seems likely to me), or should they be affected by changes in outside dimensions?  Should the A dimensions remain constant, or should the ratio between the A's and the B's be the constant, or is there some other criterion for positioning the holes (if that's what those circles are) in that direction?  Should the hole diameters remain constant?
Since the inner red and blue lines are not the same lengths as the outer ones, should the lengths of those lines be adjusted equally as overall dimensions change, or proportionally?  That is, if you need a layout that's 3" shorter in the red-lines direction, should each red line be made 1" shorter, or should the longer middle one have more removed from it than the shorter end ones, so that the ratio of their lengths remains the same?
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 31.Jul.2016 at 15:15
No blocks yet?  Did you go on holiday?  LoL


Edited by John Connor - 31.Jul.2016 at 15:15
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 29.Jul.2016 at 11:53
Be careful what you wish for.  I know where your mother lives.

Hey!  You were the one that came up with the idea so consider it a challenge.  You asked for it....now show us your stuff.  When can we expect the first twelve blocks?
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Posted: 29.Jul.2016 at 09:26
Thanks alex i will see what i can do
Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Posted: 29.Jul.2016 at 09:24
cant you not just travel back in time or something John connor? eikel ClapClapClap
Back to Top
John Connor View Drop Down
Senior Member
Senior Member


Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
Direct Link To This Post Posted: 28.Jul.2016 at 18:19
Now give him a list of some of the sizes that are required.  Maybe Ron will create most of your blocks for you.  He seems willing.
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."

<<AutoCAD 2015>>

Back to Top
alexjahrens View Drop Down
Newbie
Newbie


Joined: 26.Jul.2016
Location: United States
Using: AutoCad2010, Draftsight
Status: Offline
Points: 4
Direct Link To This Post Posted: 28.Jul.2016 at 17:39
Ron, attached is the file. Thanks for the feedback everyone.

uploads/664436/panel_dwg.dwg
Back to Top
rebellio View Drop Down
Senior Member
Senior Member


Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
Direct Link To This Post Posted: 28.Jul.2016 at 13:33
I Just provide a solution not the solution Sleepy
Back to Top

Related CAD tips:


 Post Reply Post Reply Page  123>
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,076 seconds.