
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
|
alexjahrens
Newbie
Joined: 26.Jul.2016
Location: United States
Using: AutoCad2010, Draftsight
Status: Offline
Points: 4
|
Topic: Automatic design based on variables Posted: 26.Jul.2016 at 23:42 |
Hi all,
Not sure if this can be done in AutoCad, or if anyone knows of some other software that would allow for this. I have a design "standard" that I need to customize based on customer requirements, and need to do this many times a day, so would like to semi-automate this. Here's the standard design:
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. For example, say the above "standard" design fits in a box that's 20" x 12". My customer's box is 26" x 15". To make this custom design, I add 2" to each of the red lines and 1" to each of the blue lines.
Ideally, I would be able to run a "program" where it asks me for Length and Width, I type in L=26 and W=15, and it automatically adjusts the design.
Anyone know how to go about doing this? It seems like it should be kinda simple, if there was a way to take a design, select components of it, and assign variables to them.
|
 |
rebellio
Senior Member
Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
|
Posted: 27.Jul.2016 at 13:37 |
Hi, It can be don for sure in acad using VBA or Lisp programming. But why not use Wblocks? As far as i understand you created already a lot of those plates....... regards Ron
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 27.Jul.2016 at 14:13 |
And how exactly would a regular block work in this case? The change in length is being applied to specific lines not to the overall length or width.
Might be better off with a dynamic block that covers the range of smallest to largest plates using suitable increments.
Edited by John Connor - 27.Jul.2016 at 14:16
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
rebellio
Senior Member
Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
|
Posted: 27.Jul.2016 at 17:23 |
Hi, Depends on the variety of boxes thats needed a asume that those boxes will have a standard dimension. If it is like that you can do a lott with Wblocks, IF not Scripting/VBA or Lisp will be the best to go for. Regards Ron
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 27.Jul.2016 at 17:38 |
Please demonstrate your wblock suggestion using the example the OP cited keeping in mind you can only change the lengths of the three red and the three blue lines. Explain how you accomplished the task step-by-step so the viewers at home can replicate your success.
|
"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: 27.Jul.2016 at 18:03 |
alex: Is there a minimum and maximum size? Normally when a plate is resized is it done is full inches or fractions of inches? For example might the plate go from 20x12 to 22x14.5? In other words, are oddball sizes commonly required?
My only reason for asking is in regards to the possible use of a dynamic block.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
alexjahrens
Newbie
Joined: 26.Jul.2016
Location: United States
Using: AutoCad2010, Draftsight
Status: Offline
Points: 4
|
Posted: 27.Jul.2016 at 19:00 |
Oddball sizes aren't common - typically the outside dimensions end on the inch.
Sizes range from a minimum of about 12" to a maximum of 72" or so. Thanks for the help, everyone - I'm not familiar with dynamic blocks, but I'm reading up on them!
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 27.Jul.2016 at 19:13 |
Any progress yet rebellio? Anxious to see what you have come up with.
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |
rebellio
Senior Member
Joined: 04.Mar.2009
Location: Netherlands
Using: Autocad 2018
Status: Offline
Points: 125
|
Posted: 28.Jul.2016 at 09:46 |
Hi, What i mean by Using Wblocks is that you create a library on the job and drag and drop them in a new Toolpallet so you can use them later. In this way you only have to select de correct size and directly insert them in the drawing. FoR Example I think with dynamics blocks it is still to much manual handling. Most idealy is create a lisp or vba with calculation function so that you only have to give 2 or 3 WxHxD dimensions. @ Alex can you post a copy of that standard design (dwg) ? Than i can see what i can do, I can not promise you anything because im not a lisp expert regards Ron
Edited by rebellio - 28.Jul.2016 at 10:46
|
 |
John Connor
Senior Member
Joined: 01.Feb.2011
Location: United States
Using: AutoCAD 2018
Status: Offline
Points: 7175
|
Posted: 28.Jul.2016 at 11:25 |
So in other words your WBlock idea is to create a block for each and every different size and put it on a tool pallet? That's it? Really??
|
"Humans have a strength that cannot be measured. This is John Connor. If you are reading this, you are the resistance."
<<AutoCAD 2015>>
|
 |