Need help finishing a block (constraints)

Need help finishing a block (constraints)

j_rosler_vcat
Contributor Contributor
875 Views
10 Replies
Message 1 of 11

Need help finishing a block (constraints)

j_rosler_vcat
Contributor
Contributor

I found a block to automatically space @ maximum distance and calculate # of objects, which I modified to serve as a balcony guardrail.
The original block uses constraints and I was able to modify them to my liking, but I'm having trouble finishing the block by somehow linking a new linear stretch action to the original constraint (basically I want to be able to manipulate the block using only 1 grip instead of two)

I'm not sure what the best way to do this is. I figured the best way is with another constraint for the handrail/hatch to follow somehow, but I only have access to AutoCAD LT and can't create new constraints.

 

I'd appreciate if someone more knowledgeable could help me finish my block, thanks.

0 Likes
Accepted solutions (1)
876 Views
10 Replies
Replies (10)
Message 2 of 11

tracey.platt
Explorer
Explorer

I had a look at your block, why don't you start over with creating a dynamic block from scratch and putting your constraints and actions in to suit? rather than trying to modify what someone else has done, it may be a lot easier?

Message 3 of 11

j_rosler_vcat
Contributor
Contributor

Because I can't add any new constraints other than the ones already in that drawing in LT. I can only modify existing constraints and I don't know how to make the block work how I'd like without creating new constraints.

 

I also really like the way this block automatically splits any distance into equal parts (up to a maximum spacing) and I would like my guardrail block to work like this. There probably is a better way of doing it from scratch, but if there is I'm not experienced enough with dynamic blocks to know how.

Message 4 of 11

pendean
Community Legend
Community Legend
While you wait @j_rosler_vcat ... Download a 30-day trial of Full AutoCAD and start creating your library https://www.autodesk.com/products/autocad/free-trial
Message 5 of 11

j.palmeL29YX
Mentor
Mentor

What you want to achieve is IMO only possible using constraints. 

And in addition you should never mix constraints with dynamic parameters and actions. Otherwise you will get "unexpected results". 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 6 of 11

j.palmeL29YX
Mentor
Mentor

@j_rosler_vcat 

Can you give us two numerical values please:
- which maximum length the balcony will not exceed (wich max length can be expected)?
- what is the maximum width of a single segment?

 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

0 Likes
Message 7 of 11

j_rosler_vcat
Contributor
Contributor

@j.palmeL29YX Certainly! 

Maximum length: I'd say about 20'-0" would be acceptable, but even longer would be ideal (up to 100'-0" max.).

Maximum spacing: I have it currently set to add a new segment every 5'-0" MAX, which I think looks fine.

Thanks and let me know if you have any other questions.

0 Likes
Message 8 of 11

j.palmeL29YX
Mentor
Mentor
Accepted solution

Attached is a suggestion which should work (and should be editable) in ACAD LT too. (I can't test it).

>>Usage<<

Drag the length overall to any value of your need (or type the value in the properties window). 

Then type a number of segments in the property window  and choose a value until you get an acceptable result. 

 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 9 of 11

j_rosler_vcat
Contributor
Contributor

Thanks a lot! That is very close to what I was looking for. However, is there a way to automatically calculate the number of sections, so I don't need to enter it manually? example: Num= CEIL(Distance / 60) 

0 Likes
Message 10 of 11

j.palmeL29YX
Mentor
Mentor

@j_rosler_vcat wrote:

 is there a way to automatically calculate the number of sections, so I don't need to enter it manually? example: Num= CEIL(Distance / 60) 


 

 

No, that's not possible. You can not mix Action Parameters and User Parameters in formulas. Neither ActionParameter=f(UserParameter) nor UserParameter=f(ActionParameter).  Therefore I suggested this (not perfect, I know)  workaround. 

Jürgen Palme
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.

EESignature

Message 11 of 11

j_rosler_vcat
Contributor
Contributor

Oh ok I understand, well it's not a big problem and it will still end up saving me time in the long run.

Thanks a lot for your time and assistance, much appreciated!

0 Likes