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

The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.

Unable to get text from models annotation note

Mat
13-Aquamarine
13-Aquamarine

Unable to get text from models annotation note

Hi there,

 

I have a 3D - note in a model and I want to read the text from it via web.link.

I already was able to connect to the note via:

 

 

var mGlob = pfcCreate("MpfcCOMGlobal");
var oSession = mGlob.GetProESession(); 
var CurModel = oSession.CurrentModel;
var note = CurModel.GetItemByName(pfcCreate("pfcModelItemType").ITEM_NOTE, "note name");

 

 

 

When I try to get the note's text with "note.GetTextLines()" it throws the error "Object doesn't support property of method 'GetTextLines'".

Unfortunately, ptc's weblink documentation is not very helpful.

 

 

 

2 REPLIES 2
MartinHanak
24-Ruby III
(To:Mat)


@Mat wrote:

Hi there,

 

I have a 3D - note in a model and I want to read the text from it via web.link.

I already was able to connect to the note via:

 

 

var mGlob = pfcCreate("MpfcCOMGlobal");
var oSession = mGlob.GetProESession(); 
var CurModel = oSession.CurrentModel;
var note = CurModel.GetItemByName(pfcCreate("pfcModelItemType").ITEM_NOTE, "note name");

 

 

 

When I try to get the note's text with "note.GetTextLines()" it throws the error "Object doesn't support property of method 'GetTextLines'".

Unfortunately, ptc's weblink documentation is not very helpful.

 

 

 


Hi,

please ask PTC Support.


Martin Hanák
Mat
13-Aquamarine
13-Aquamarine
(To:MartinHanak)

Thanks for the advice and also happy new year.

 

Unfortunately, I / my company does not have access to ptc-support.
I created a ticket at my ptc retailer, but they could not solve the problem either. But they offered my their own developed tool for purchase. 😐

Announcements


Top Tags