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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

JLink GetRevision & GetVersion return null under Windchill

gchampoux
7-Bedrock

JLink GetRevision & GetVersion return null under Windchill

One of my JLink apps has changed behavior when Windchill is involved.
The app uses the model methods GetRevision & GetVersion, which both return a string.
The app uses these strings to add a standized note on a drawing.


This app worked fine when we used Pro/E Wildfire with Intralink 3.4.
However, when Pro/E is used with Windchill Intralink 9.1, both of these methods return null.


PTC_WM_REVISION & PTC_WM_ITERATION are properly defined in the drawing, and that is what I was expecting from these methods.


Before I submit this to PTC, has anyone else had to deal with this?


Gerry

2 REPLIES 2

Those JLink methods only works with Intralink 3.4.
With Windchill you must read the parameter value like

String version =
model.getParam("PTC_WM_VERSION").GetValue().GetStringValue();

/Bjarne



Gerry Champoux <->
25-04-2011 21:31
Please respond to
Gerry Champoux <->


To
<->
cc

Subject
[proecus] - JLink GetRevision & GetVersion return null under Windchill






One of my JLink apps has changed behavior when Windchill is involved.
The app uses the model methods GetRevision & GetVersion, which both return
a string.
The app uses these strings to add a standized note on a drawing.
This app worked fine when we used Pro/E Wildfire with Intralink 3.4.
However, when Pro/E is used with Windchill Intralink 9.1, both of these
methods return null.
PTC_WM_REVISION & PTC_WM_ITERATION are properly defined in the drawing,
and that is what I was expecting from these methods.
Before I submit this to PTC, has anyone else had to deal with this?
Gerry

Site Links: View post online View mailing list online Send new post
via email Unsubscribe from this mailing list Manage your subscription
Use of this email content is governed by the terms of service at:

Thanks to all that replied.


The most common solution was to simply use the parameters instead of GetRevision & GetVersion, which apparently only work in Intralink 3.x.


Gerry


In Reply to Bjarne Frandsen:


Those JLink methods only works with Intralink 3.4.
With Windchill you must read the parameter value like

String version =
model.getParam("PTC_WM_VERSION").GetValue().GetStringValue();

Announcements


Top Tags