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

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

How do i get current modelname

ss-10-11-12
1-Newbie

How do i get current modelname

can any one help me to get current model name

3 REPLIES 3
tgriffin
4-Participant
(To:ss-10-11-12)

It shows the current model name at the top of the model tree and at the top of the screen.  If you're trying to input it into a parameter you can set a relation for the parameter name to equal Rel_Model_Name

sjuraj
13-Aquamarine
(To:ss-10-11-12)

Hi, you can create OS mapkey that runs script which copy model name to clipboard (it simulates ctrt+c command):

  1. create new mapkey
  2. choose OS script
  3. write start "" "<path_to_file>\getName.jse"  (e.g. "c:\Creo 3.0\myScripts\getName.jse")
  4. run mapkey to get name of current model

There is getName.jse file in the attachment. This is the script which do the work.

You can make similar script to open drawing of current model with this technique.

sully7
13-Aquamarine
(To:ss-10-11-12)

Hi Sangavi,

Are you trying to get the model name for a drawing? For a simple copy/paste? or for an application? If so, what API are you using - C? C++? VB? Java?

Thanks,

James

President & Founder
CadActive Technologies - www.cadactive.com
Top Tags