Hello ALL,
I am having major issues with the web.link javascript wrapping of jlink. I have
written java for jlink & workflows, jsp/webject for windchill, but the
javascript wrapped around jlink is causing me issues.
I have done jlink in the past, but have had environment issues with wf2/3 &
switched to web.link for ease.
The tool I am trying to create is a program to place symbols on drawing
dimensions (probably created, not shown). Then write the dim|+tol|-tol|ad# etc
to a file (text 1st, then maybe excel).
I am learning all the limitations about offset of symbol. Getting the tol's of
drawing dims, etc. But I am learnind alternate routes for those.
The part that has me puzzled is the javascript code to gather the drawings dims.
Not the model dims. There are good
samples for that.
Per a ptc Tan-132460, I have learned that I need to obtain drawings views, then
gather my dims:
"When using ModelItemOwner.ListItems() to list all ITEM_DIMENSIONs in a view,
the returned objects are actually Dimension2D objects".
From the web.link docs, I have seen where they specify:
pfcModelItemOwner.ListItems() & ITEM_DIMENSION for type.
But I have tried every possible casting scenario & no go.
I either get typical type errors or "automation server can't create object".
Even though that error leans towards ActiveX & browser settings (which I have
checked over & over), I only get that error when dealing with the "ListItems"
or that area.
But I would appreciate any snippets or advice. But the docs give advice, so
snippets will help more. I would even appreciate jlink code, since I can
probably transfer to web.link code.
Thanks in advance for any help....
L. Jett
[email protected],[email protected]
I am having major issues with the web.link javascript wrapping of jlink. I have
written java for jlink & workflows, jsp/webject for windchill, but the
javascript wrapped around jlink is causing me issues.
I have done jlink in the past, but have had environment issues with wf2/3 &
switched to web.link for ease.
The tool I am trying to create is a program to place symbols on drawing
dimensions (probably created, not shown). Then write the dim|+tol|-tol|ad# etc
to a file (text 1st, then maybe excel).
I am learning all the limitations about offset of symbol. Getting the tol's of
drawing dims, etc. But I am learnind alternate routes for those.
The part that has me puzzled is the javascript code to gather the drawings dims.
Not the model dims. There are good
samples for that.
Per a ptc Tan-132460, I have learned that I need to obtain drawings views, then
gather my dims:
"When using ModelItemOwner.ListItems() to list all ITEM_DIMENSIONs in a view,
the returned objects are actually Dimension2D objects".
From the web.link docs, I have seen where they specify:
pfcModelItemOwner.ListItems() & ITEM_DIMENSION for type.
But I have tried every possible casting scenario & no go.
I either get typical type errors or "automation server can't create object".
Even though that error leans towards ActiveX & browser settings (which I have
checked over & over), I only get that error when dealing with the "ListItems"
or that area.
But I would appreciate any snippets or advice. But the docs give advice, so
snippets will help more. I would even appreciate jlink code, since I can
probably transfer to web.link code.
Thanks in advance for any help....
L. Jett
[email protected],[email protected]