Jump to content

Toggle Visibility of JPG or other object based on attribute content.


Recommended Posts

Posted

Hi All,

 

I'm sure this is possible but I don't even know where to start. I am happy to do some reading if someone can direct me to a tutorial or web-page that will help me...

 

I want to toggle the visibility of certain objects based on the contents of particular attributes in my title block, for example:

 

(simplified text program)

case:

title_block_attribute = DRAFT

Display Draft.JPG

title_block_attribute = FOR REVIEW

Display Review.JPG

encase;

 

or maybe:

 

if title_block_attribute = DRAFT

then "display Draft.JPG" = 1

endif;

 

Can anyone help me with this? I've tried Google, but I haven't even found the right search terms that yield even close to what I need!

 

Cheers,

Pawnsurfer

Posted

No code but you can turn the images off/on if on they exist on 1 layer, manually would check the value of the attribute DRAFT and make changes if happy with that coding is pretty easy. To do automatically would require a reactor which triggers when you change a block attribute, one problem if using layouts is do you want some layouts to be Draft and others Final ?

Posted

I suppose I could have as many layers as I have objects to be displayed, for example, DRAFT, SUBMITTAL, FOR REVIEW, CONSTRUCTION, INSTALLATION, APPROVED and AS BUILT, and then switch each layer on or off as required, if you think this will be the easiest option to code.

We do have a potential reactor at the "title block update" dialogue that controls the contents of title block attributes.

Posted

I have also realised I need to update my details... I am using acade2014

Posted

Instead of creating more layers (I think you will to create some but not a lot) make more layouts then turn on just the layers you need. You can use the same title block just make minor changes for each layout. Make sure you save it as a template before putting your drawing on it. I think you will save yourself some time and work if you make more layouts.

Posted

Thinking a bit more you need a viewport for the images as you can turn on and off any layer in a viewport so you would have all your images in one spot on top of each other. just turn on and off or use the global on / off for all.

  • 2 weeks later...
Posted

Call me Ignorant but is this not the purpose of plot stamps when you are batch plotting...

 

(reading through these as I should be getting Electrical Soon)

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...