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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

JLINK to export Product View code help.

jeffruff
8-Gravel

JLINK to export Product View code help.

I am still learning JLInk and have an ugent need toexport a Product View EDZ file.


It appears that I need to create instructions and then filename and then export using these values.


What is not clear to me is how to set the export option to EDZ.


I have the following code


pv_instr.SetPVExportOptions(???);




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 think I have the correct syntax but it does not output any info. I have included the code below but it still never runs it hangs on the try/catch section. Any help would be appreciated.








void try





myProductViewExportInstructions

PV_FORMAT_EDZ

myProductViewExportInstructions

pvFilename .GetFullName().toLowerCase()+ ".edz"

model, myProductViewExportInstructions



}



{


, "ERROR:Creating PV " );

}


catch


Jeffry -

Your E-mail environment must be similar to mine - I have a very hard time
preserving the formatting of my source code when sending it to this list.

> I have included the code below but it still never runs it hangs on the
> try/catch section.

It's quite possible that your code IS running and failing. In JLink, some
exceptions cause execution to silently stop and return control to Pro/E.
Those exceptions, I believe, are subclasses of RuntimeException. Consider
adding another catch statement for RuntimeException and see if you can
isolate this problem.

(To our JLink experts: Can you confirm that RuntimeException causes these
silent JLink failures?)

If that doesn't work, you could add more dialogs in the middle of your
try block.

It looks like you're using Eclipse or another Java IDE to write your code.
When you have the time, you should learn how to attach the IDE's debugger
to your JLink session. It's an extremely helpful tool for fixing problems
in JLink code.

|+| M a r k |+|

Mark Stallard
Rapid Response Development
information Solutions
Integrated Defense Systems
Raytheon Company




(business)
+1.339.645.6423
(cell)
+1.617.331.5443
(tie line)
224.6423

-



235 Presidential Way
Woburn, MA 01801-1060
www.raytheon.com


Raytheon Sustainability

This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this message
in error, please so advise the sender by reply e-mail and delete this
message. Thank you for your cooperation.









Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags