cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

recording mapkeys in relations/parameters form

DaveClark
2-Explorer

recording mapkeys in relations/parameters form

Hello Everyone!

I'm trying to automate a calculation with a mapkey. I'm able to get it to create the analysis features where I need them in the model tree. I was very careful when typing the relations in the relations form, and adding the parameter (volume, area, etc) from each analysis feature. When I ran the mapkey everything worked great until the first relation was going in. The parameter value was added to a new line (VOLUME:FID_1740), and I went back to set it to a variable called "VW", so the entire line looked like VW=VOLUME:FID_1740. However, when the mapkey runs, it looks like this:

VOLUME:FID_1740VW=
Relation has an error.

So you can see, the VW= did not get set to the beginning of the line as I typed.

Any ideas?

Thanks!


Dave Clark
Sr. CAD Application Engineer
Dukane Corporation
Intelligent Assembly Solutions Division
2900 Dukane Drive
St. Charles, IL 60174
630-797-4922 (Phone)
630-797-4949 (Fax)

[cid:image001.png@01CDA860.37D73570][cid:image003.png@01CDA860.37D73570]<http: twitter.com=" dukaneias=">[cid:image004.png@01CDA860.37D73570]<http: www.youtube.com=" user=" dukaneultrasonics=">">http://usblog.dukane.com[cid:image002.png@01CDA860.37D73570]<http: www.facebook.com=" pages=" dukane-intelligent-assembly-solutions=" 3139592...
[cid:image005.jpg@01CDA860.37D73570]


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
2 REPLIES 2
TomU
23-Emerald IV
(To:DaveClark)

Two ideas. First, if the feature ID is going to stay constant, try saving the relations to a text file and then using the mapkey to load the relations into the relations from the text file. This will prevent you from typing anything. (Just make sure you press the check box to verify them.) Alternately you could create the analysis feature and then add it to a UDF. This will work well if both the feature the parameter is in and the feature being referenced are both placed by the UDF.

Tom U.

Using the text file did the trick. Since I put the text file in a central location on the network, I had to make sure that I typed in the name of the path instead of clicking backwards through folders to get to the destination.

Thanks,

-Dave
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags