Drive the location and the Scale of a nested Block? ...

Drive the location and the Scale of a nested Block? ...

serge
Advocate Advocate
675 Views
7 Replies
Message 1 of 8

Drive the location and the Scale of a nested Block? ...

serge
Advocate
Advocate

Is it possible to change the location (Base Point) and Scale of a (static) Block within a Dynamic Block?
I tried a combination of Dynamic Block functions (for example Linear Parameter with Stretch and Scale)
with parametric design, but with no success.
I want to create a symbol of a rectangular electrical cabinet, Length and Width dynamic
in which a static inerternal Lightning Block is always centered and scaled auto.
Thank you

DEVIDTS Serge, CAD Consultant
http://www.CADdICT.be
0 Likes
676 Views
7 Replies
Replies (7)
Message 2 of 8

Libbya
Mentor
Mentor

Post the block.

 

If I understand your question, yes it is possible to scale and move a nested static block using dynamic parameters/actions.  Combining dynamic parameters/actions with parametric constraints is almost never a good idea and most often results in problems.  

0 Likes
Message 3 of 8

serge
Advocate
Advocate

Thx.
I know this combination is not prefered. But I want to keep the static Flesh Block (see: Attachment) in the
middle of the outer rectangle. I can achieve this with parametric dimensions (d0/2 and d1/2 on the
INSertion of the Block)... but I don't seem to find a associated 'Scale action' by only limiting myself to parametric design.
Perhaps someone has an example Block?
Thank you.

DEVIDTS Serge, CAD Consultant
http://www.CADdICT.be
0 Likes
Message 4 of 8

Libbya
Mentor
Mentor

Why are you wasting time posting image files?  Post the block.

 

If you need dynamic parameters/actions then why are you using any parametric constraints?  If you want to keep the nested block centered then that is easily accomplished without using any constraints.

Message 5 of 8

serge
Advocate
Advocate

Please do find the geometry in Attachment
Thank you.

DEVIDTS Serge, CAD Consultant
http://www.CADdICT.be
0 Likes
Message 6 of 8

Libbya
Mentor
Mentor

It might not have been clear but in each of my prior posts I was suggesting that you eliminate all of the constraints.  Constraints are a worse way to go if the desired behavior can be accomplished with dynamic parameters/actions and in 95%+ of blocks constraints are not needed and only cause issues.  

 

You stated that you wanted the nested block centered and scaled automatically, but there are various ways to interpret that.  Here's the simplest interpretation.  You'd need to give more details if that isn't what is desired.  

 

0 Likes
Message 7 of 8

Libbya
Mentor
Mentor

Here's another version that is a bit more complicated but separates out a horizontal stretch and a vertical stretch and does the scale based on the diagonal length.  

 

 

0 Likes
Message 8 of 8

vinodkl
Mentor
Mentor

Hi,

 

As Libby said there is no need of using geometric constraints to create this as per your requirements.

You can simply add linear parameter on vertical and horizontal sides and add a scale action. I have also added a basepoint parameter at the center and included the same in the scale action so that the basepoint remains in center with increase in length and width. (see attachment)

 

Also there are attributes which have been added to the block and deleted later on which is still showing up when you double click on the block(I have deleted them in the attachment). I order to complete remove the attributes use command "ATTSYNC" which would sync the attributes inside the block when you update attribute/ add new one/ delete.

 

 

 

--------------------------------------------------------------------------------------------------------------------------
ವಿನೋದ್ ಕೆ ಎಲ್( System Design Engineer)
Likes is much appreciated if the information I have shared is helpful to you and/or others.

Please mark "Accept as Solution" if my reply resolves the issue or answers your question, to help others in the community.
--------------------------------------------------------------------------------------------------------------------------
0 Likes