Announcements

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

hatch does not follow dynamic block resize

christian_serena
Enthusiast

hatch does not follow dynamic block resize

christian_serena
Enthusiast
Enthusiast

Hi,

 

posting here since I didn't find anything in Forum.

 

I am new to dynamic blocks.

 

The shape attached is supposed to be an electric switches closet symbol.

 

It needs to be resized along X and Y axis.

 

Parametric blocks work for lines, but I didn't succeed to tell hatch to do the same.

 

Any clue?

 

Thanks 

 

christian

 

 

a.png

b.png

  

 

 

Reply
Accepted solutions (2)
3,297 Views
17 Replies
Replies (17)

handjonathan
Community Manager
Community Manager

Hi @christian_serena 

Thanks a lot for posting your question to the forums!   

 

If the hatch is created using the "Select Objects" option (and as long as the hatch is associative), then the hatch can be included in the stretch. 

We look forward to hearing back from you with more information so we can help you as a community! 



Jonathan Hand


Industry Community Manager | AEC (Architecture & Building)

0 Likes

Libbya
Mentor
Mentor

Make sure the hatch is associative and stretch the boundary.  Do not stretch the hatch itself!  Post the BLOCK if you need further assistance.

0 Likes

christian_serena
Enthusiast
Enthusiast

to @Libbya 

 

Yes, it wan't associative. 

 

I tried to make it associavite, however, a "non applicable error" occurs

 

again.... ;(

 

 

 

christianserena_0-1676044545898.png

 

0 Likes

fkellogg
Advocate
Advocate
Accepted solution

You must re-hatch the area, as I have not seen that you can re-associate a hatch.

 

You must then make sure all other Actions include the hatch, just to be sure.

 

Hatch associativity is turned on by default and is controlled by the HPASSOC system variable {use 1}.

0 Likes

Libbya
Mentor
Mentor

@fkellogg wrote:

You must re-hatch the area, as I have not seen that you can re-associate a hatch.

 

You must then make sure all other Actions include the hatch, just to be sure.

 

Hatch associativity is turned on by default and is controlled by the HPASSOC system variable {use 1}.


You should NOT include the hatch in any of the actions!  You should only include the hatch boundary.

0 Likes

fkellogg
Advocate
Advocate
I have plenty that do, and work just fine.
0 Likes

Libbya
Mentor
Mentor

Good luck with that.  Stretching the hatch is not helpful and there situations where including the hatch in the stretch action's selection set will actually cause it to lose associativity.  

0 Likes

christian_serena
Enthusiast
Enthusiast

Frankly, once stretched the whole shape (and associative hatch would follow), associativity is not gone.

 

This, in my little newbie experience.

 

 

0 Likes

christian_serena
Enthusiast
Enthusiast

@fkellogg : thank you, it works!! 

 

here is a sample

 

new.png

0 Likes

christian_serena
Enthusiast
Enthusiast

Hope that its' not off topic here.

 

Now that hatch isseu is solved, a new one comes from text

 

attached you might see a text "x" that won't follow stretching actions as well as the hatch.

 

Already checked text properties but still cannot associate it with shape resize.

 

Sorry for troubling

 

 

 

0 Likes

fkellogg
Advocate
Advocate

You may need to add a "move" Action to the Stretch parameter.

If you want to keep the text centered, apply a distance factor of 0.5 to the move action.

      (not sure what exactly this "distance factor" is actually called)

Another method I have used is to use a dimension as the text. Strip the dimension of all lines, arrows, etc. and edit the text as needed (static text, not a change-able Attribute, nor the distance of the dimension). Text will stay centered and as a bonus, it will stay upright even if a Rotate action is used.

 

CFK

0 Likes

christian_serena
Enthusiast
Enthusiast

I am very unsure how to add a "move" action to the strecht parameter.

 

Adding it from Action list (the same way I did for stretch the whole shape), either to the text or to the linear parameter, I end up to form a scrambled shape or no moving action at all.

 

I believe it needs to make a relation between text moving to shape stretching.

 

Using a dimension as text won't be a solution, since the text you see is a block attribute and must keep that way.

 

 

0 Likes

fkellogg
Advocate
Advocate
You add the Action to the Stretch Parameter. the little Move Icon attaches itself to the Stretch icon. You will click select the text itself to be moved. You may need to pay attention to the "start point" vs. the "mid point" criteria.
I am busy with work now, so I can't get into the details. Learning by doing, along with trial & error is how I have figured things out.
I am a HUGE fan of Dynamic Blocks, and I still have a lot to learn myself.
0 Likes

Libbya
Mentor
Mentor
Accepted solution

Even though I know what you mean, semantics are sometimes important.  There is no such thing as a 'stretch parameter'.   I think what you meant to say is, "associate a move action with the linear parameter that already has a stretch action associated with it".  

0 Likes

christian_serena
Enthusiast
Enthusiast

Yes. What you wrote is exactly what I meant. Sorry for bad semantics.

 

I'll try my best from now on.

 

0 Likes

christian_serena
Enthusiast
Enthusiast

Thank you @fkellogg.

 

It actually works fine with normal text, lines, shapes, but not with "attribute text".

 

Still trying endlessy.

 

 

0 Likes

Libbya
Mentor
Mentor

It should work fine with attributes provided all attributes within the block have unique tags and their property 'locked'=YES.

 

Post your block if you want better/further assistance.

0 Likes