Master representation
Jan 25, 2010
09:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 25, 2010
09:13 AM
Master representation
Hello everybody,
I'm working on a Toolkit asynchronous procedure that retrieves an
assembly and applies some UDFs. It works well except on assemblies with
simplified representations. UDFs are to be applied in the master rep but
as far as I could debug, an user defined simplified representation is
loaded, so the UDFs placing constraints fail. I'm using the
ProMdlRetrieve function and no explicit simp rep are loaded.
The question is... how can I force Pro/ENGINEER to load the master rep?
The procedure is for Pro/ENGINEER Wildfire 2.0 and Intralink 3.3 (but
the same occurs with Intralink 3.3)
Thanks
-Stefano Berretta
--
CAD.I.TECH - CAD Integration Technology s.r.l.
via Montevideo, 7/11, I-16129 Genova (Italy)
tel: (+39) 010 3626266
fax: (+39) 010 3626267
www.caditech.it
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.
I'm working on a Toolkit asynchronous procedure that retrieves an
assembly and applies some UDFs. It works well except on assemblies with
simplified representations. UDFs are to be applied in the master rep but
as far as I could debug, an user defined simplified representation is
loaded, so the UDFs placing constraints fail. I'm using the
ProMdlRetrieve function and no explicit simp rep are loaded.
The question is... how can I force Pro/ENGINEER to load the master rep?
The procedure is for Pro/ENGINEER Wildfire 2.0 and Intralink 3.3 (but
the same occurs with Intralink 3.3)
Thanks
-Stefano Berretta
--
CAD.I.TECH - CAD Integration Technology s.r.l.
via Montevideo, 7/11, I-16129 Genova (Italy)
tel: (+39) 010 3626266
fax: (+39) 010 3626267
www.caditech.it
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.
Labels:
- Labels:
-
General
2 REPLIES 2
Jan 25, 2010
11:28 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 25, 2010
11:28 AM
Stefano,
It has been my experience with simp reps that you have to explicitly load/activate the simp rep you want to work with. If you just load a model (I think) the rep that was active the last time it was saved will be active. You need to use one of the following functions based upon asm or prt.
ProPartSimprepRetrieve() (prt)
ProSimprepActivate() (asm)
Read the API Wizard under User's Guide->Simplified Representations.
Patrick Williams | Engineering Systems | Sr. Applications Engineer | Steelcase Inc. | 616.698.4078
It has been my experience with simp reps that you have to explicitly load/activate the simp rep you want to work with. If you just load a model (I think) the rep that was active the last time it was saved will be active. You need to use one of the following functions based upon asm or prt.
ProPartSimprepRetrieve() (prt)
ProSimprepActivate() (asm)
Read the API Wizard under User's Guide->Simplified Representations.
Patrick Williams | Engineering Systems | Sr. Applications Engineer | Steelcase Inc. | 616.698.4078
Jan 28, 2010
10:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Jan 28, 2010
10:52 PM
I would try setting config.pro option:
open_simplified_rep_by_default NO
before going too deep into ProSimprep...
HIH.
FV.
