Draft; Checkboxes to display/hide certain text or images?

Valued Contributor
Valued Contributor

Hi,

 

Is it possible to create options/checkboxes on a draft template, to display (or hide) certain text or images?

 

Some drawings we create for our own workshop, others are sent to suppliers or approval agencies. Some of these drawings we would like to add certain images, tables, stamps or text, but not all. A checkbox with options to display/hide certain images would be perfect.

 

Is that possible? To display/hide images (or text boxes) based on checkbox input?

 

 

Hope you guys understand what i'm trying to explain Smiley Happy

 

 

 

Regards

 

Kenneth

9 REPLIES

Re: Draft; Checkboxes to display/hide certain text or images?

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

Hi Kenneth,

sorry if you already know this but I think using Layers is about the only way to do what you want.  Not quite a checkbox admittedly but if you made a few layers up in the template file you could place standard images on these and put drawing elements on whichever layer was appropriate, eg 'Customer Only', 'Internal Only' or whatever. It's very easy to switch layers off and on using the Layers tab.

 

Once all that was working if you really wanted a simple checkbox I think you'd need to write a program to do it but it would be quite straightforward I think.

 

What would be really nice is if there were a Pathfinder type display that showed all the objects on a sheet so that you could tick or untick these at will, or maybe there is?

 

Frank

 

Edinburgh University

Re: Draft; Checkboxes to display/hide certain text or images?

Valued Contributor
Valued Contributor

Layers sounds like a viable option.

Thanks for the suggestion Smiley Happy

Re: Draft; Checkboxes to display/hide certain text or images?

Valued Contributor
Valued Contributor

Can you make several layers visible at the same time?

Re: Draft; Checkboxes to display/hide certain text or images?

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

will one drawing go multiple places? each required a different title box? the obivouse option would just have different title box template for each spot. that's what we currently do

Re: Draft; Checkboxes to display/hide certain text or images?

Valued Contributor
Valued Contributor

No, one draft for one part (or assembly) - titlebox will stay the same.

 

The draft/titlebox-design will stay the same, but we would like to add extra info/details to the sheet, depending on usage (such as DNV approval info, tolerance tables etc.).

 

Several layers each containing a detail, might be a solution.

Need to look into that, we have not been using layers in layouts before.

Re: Draft; Checkboxes to display/hide certain text or images?

Esteemed Contributor
Esteemed Contributor

Yes, just use your Shift or Ctrl key to select multiple Layers and then either right mouse click to get the context menu to show or hide them or use the buttons at the top of the form to do the same.


Thanks,
Ken

Production: ST9 MP10
Testing: ST10 MP1

Re: Draft; Checkboxes to display/hide certain text or images?

PLM World Member Legend PLM World Member Legend
PLM World Member Legend

Kenneth,

sorry for the delay but it was our work's Christmas Night Out last night.

 

Anyway, Ken's methods are probably a bit quicker than mine but as he says you can pretty much do anything you've asked with Layers.  The only thing to watch is the fact that using the Layers Tab you can't hide or delete the Current Layer.  The Current Layer is switched to by double clicking its title in the Layers list.

 

Here's a simple little video...........

http://youtu.be/6EufWCrui1w

 

Hope that helps,

 

Frank

Edinburgh University

Re: Draft; Checkboxes to display/hide certain text or images?

Phenom
Phenom

Hi,



see attached macro, i did a couple of years ago.

 

This was used to turn on or off layers in a draft.

 

The layer names are defined in the INI file.

 

And - as I remember - the layers 1 and 2 in the lsit are special layers.

Turning of 2 tunr of 1 too, and tunring on 1 turns on 2 also.

 

regards

Wolfgang

 



regards
Wolfgang

Re: Draft; Checkboxes to display/hide certain text or images?

PLM World Member Legend PLM World Member Legend
PLM World Member Legend
Wolfgang,
would it be possible to get the source code?

Frank
Edinburgh University