×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Mapkey: set a parameter based on a condition?

Mapkey: set a parameter based on a condition?

Mapkey: set a parameter based on a condition?

(OP)
i work primarily with wildfire 3 and creo 3, no windchill.
I have a parameter CONFIRMED = YES_NO, which states if the design has been confirmed by the buyer or not.
If it has been confirmed, that means that i unhide a couple of additional manufacturing-related objects on the drawings (more detailed notes, tables...).
sometimes the customer wants additional changes, which means that i have to set it to NO again after setting it to YES though.
Currently i have to set it by hand, but i wonder if it's possible to make a mapkey to do it? The mapkey would have to look at the current value of the param (yes/no) and set it to the other one.
is it possible to do that?

i know that's probably possible in weblink, but i'd rather do it with a mapkey (i am allowed to make mapkeys, but mgmt wouldn't understand anything else and would berate me for wasting my time...).

RE: Mapkey: set a parameter based on a condition?

I could be wrong but I don't think you can do any kind of logical comparison in a mapkey.

----------------------------------------

The Help for this program was created in Windows Help format, which depends on a feature that isn't included in this version of Windows.

RE: Mapkey: set a parameter based on a condition?

I think this can be done with a drawing program. I haven't used them so I cannot give detailed advice, but what is asked for is what they were intended to accomplish - dynamic configuration of drawing items and views and such. Good luck as one of the reasons I know so little about drawing programs is PTC does not include any information in their help files that is sufficient to answer most questions.

It should be possible via a mapkey, but it will involve calling an external utility via the SYSTEM command, which allows the CMD processor to run. There aren't many examples of these and it requires knowing how to create CMD batch files to be of much use.

RE: Mapkey: set a parameter based on a condition?

Drawing Program will do exactly as you want by setting layers visible/invisible based on a parameter value.
We have different security levels that get applied to our drawings. With each level, we have various symbols that need to be applied.
The symbols are on layers and when we change the classification parameter and then regen, it turns on or off layers.

I did not setup the drawing program, but I have had to modify it. Took me about a month of reading and digging to find the documentation and figure out how it works and then apply the mods. We are rolling out a new set of drawing formats on a different network and I did NOT include the drawing program in the new format. This may change, but I hope not. The layer switching on and off is the hardest part to get right. I have one classification setting that when applied will still have some layer be active but invisible when done and weld symbols seem to end up on that layer. The users when reminded to turn on that layer then have a dozen weld symbols to delete as they add multiple ones thinking the system is not placing them.

"Wildfires are dangerous, hard to control, and economically catastrophic."

Ben Loosli

RE: Mapkey: set a parameter based on a condition?

(OP)
i planned it to do with just hiding/ revealing a couple of notes (set state...) and make other notes parameter based (i.e. "" if confirmed == no and "asdfasdf..." if confirmed == yes (via if clauses in the drawing program, drawing parameters and states).

in what way is the layer-based approach superior? (i am not very familiar with it i must admit)

RE: Mapkey: set a parameter based on a condition?

A layer is less programing because you can have any number of items on the layer.

----------------------------------------

The Help for this program was created in Windows Help format, which depends on a feature that isn't included in this version of Windows.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members! Already a Member? Login



News


Close Box

Join Eng-Tips® Today!

Join your peers on the Internet's largest technical engineering professional community.
It's easy to join and it's free.

Here's Why Members Love Eng-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close