Jump to content

Dynamic Block Move and Change Attribute Based on Visibility


Jozef13

Recommended Posts

Hello everyone,

is it possible to change attribute value and its position based on visibility or lookup parameter ?

I am able to do only one of these as you can see in attached dwg.

Best Regards.

MoveAtt.dwg

Link to comment
Share on other sites

Use a field in your AttMove block (as opposed to one of the others) - i.e. the one where you'd gotten the position to change but not the value:

 

Forgive me if you know how to use fields, but in case not:

In the Block Editor;

Clear out the Default value of the attribute, and use Ctrl^F to insert a field;

On the left-hand side, click on the BlockPlaceholder field name (you may find this easier to find under the "Objects" field category);

In the middle Block Reference Property box, the bottom item should be Visibility1 - select this;

Apply any formatting you want and OK out.

 

This won't work with any versions of the block currently in place, but if you insert a new one, it will...

 

 

dJE

Link to comment
Share on other sites

1 hour ago, danellis said:

Use a field in your AttMove block (as opposed to one of the others) - i.e. the one where you'd gotten the position to change but not the value:

 

Forgive me if you know how to use fields, but in case not:

In the Block Editor;

Clear out the Default value of the attribute, and use Ctrl^F to insert a field;

On the left-hand side, click on the BlockPlaceholder field name (you may find this easier to find under the "Objects" field category);

In the middle Block Reference Property box, the bottom item should be Visibility1 - select this;

Apply any formatting you want and OK out.

 

This won't work with any versions of the block currently in place, but if you insert a new one, it will...

 

 

dJE

Thank you for your advice, but I need to achieve that functionality.
Described functionality I need for more complex blocks. The sent block was just a simple attempt to define the desired behavior. 
The problem is that when I use a block property table in a block definition, the visibility parameter is not available in Property Lookup Table 
and I can not add it as property as you can see at attached jpg.

Property Lookup.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...