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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

FOLLOWUP- Use JLink to modify a Pro/Program file?

lylebeidler
1-Newbie

FOLLOWUP- Use JLink to modify a Pro/Program file?

Thanks to Bjarne for pointing me to ProgramExortInstructions &
ProgramImportInstructions.

I was able to successfully export the program to a text file & manipulate
the file.

The issue I'm having is when I try to import the program file back into the
model, it fails. It appears as though the issue is with the dialog in the
message window, where Pro/E asks you "Do you want to incorporate your
changes into the model?"

How do I get jlink to answer yes, so to speak? It seems that would be
covered in the ProgramImportInstructions, but the api wizard is not giving
me much information there.

Thank you!



--



Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
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

I forgot to mention - the message window displays

Use EDIT FROM MODEL, this listing is outdated.

I don't know if that helps or not.

--



Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
<">mailto:-> -
<">http://www.mgsincorporated.com>
bfrandsen
6-Contributor
(To:lylebeidler)

Lyle,
In line 2 of the ProProgram *.pls file there is a REVNUM. This is
increased for every edit through Tools>Program...
The message you get could be because the REVNUM is less in your imported
program file than the current models in session.
I have tested a little further and have experienced massive crashes of
Pro/E when importing program files after editing. I have also had some
successful imports, which I am unable to reproduce at the moment Smiley Surprised(

Bjarne



Lyle Beidler <->
23-09-2010 15:21
Please respond to
Lyle Beidler <->


To
'Lyle Beidler' <->
cc
-
Subject
[proecus] - RE: FOLLOWUP- Use JLink to modify a Pro/Program file?






I forgot to mention – the message window displays
Use EDIT FROM MODEL, this listing is outdated.
I don’t know if that helps or not.
--

Lyle Beidler
MGS Inc
178 Muddy Creek Church Rd
Denver PA 17517
717-336-7528
Fax 717-336-0514
-
Top Tags