Drawings and rep instances WON'T LOAD when opening a PLMEntity from a script using Search session service

Daniel Koman

Drawings and rep instances WON'T LOAD when opening a PLMEntity from a script using Search session service

3DEXPERIENCE R2020X (V6) - I'm using a script to search and open a physical product by PLM_ExternalID and revision.  I'm following the same methodology used in the DSYAutomation.chm file distributed by Dassault, in the section "Browse Occurrence Model" (see attached text file).  When a physical product is opened in this way, none of the representation instances will load in the new window.  If I search and open manually, the drawings load just fine.  Is there a way to get the drawings and other representation instances to load using the search service?

Please see attached screenshots of both scenarios for reference!

Also attached is the 'Browse Occurrence Model' section of the automation guide from Dassault.

 

Any assistance with this is greatly appreciated, thanks in advance for your time :)

Attachments

  • automated_open.png (33.5k)
  • manual_open.png (39.8k)
  • BROWSE_OCCURRENCE_MODEL.txt (8.8k)
Edited By:
Daniel Koman[Nikola Motor] @ Feb 16, 2023 - 05:39 AM (IDLW)

Jeffrey Roark

RE: Drawings and rep instances WON'T LOAD when opening a PLMEntity from a script using Search session service
(in response to Daniel Koman)

try adding this environment variable to your env file. 

PLMOpenMacroWithAllReps=1

Daniel Koman

RE: Drawings and rep instances WON'T LOAD when opening a PLMEntity from a script using Search session service
(in response to Jeffrey Roark)

wow, thanks so much Jeffrey, that did the trick!  Not sure how I ever would have known to add that if not for your help.  Thank you so much for taking the time out of your day to answer my question - MUCH appreciated!

ps - are you going to COExperience in Miami this April?  If so, let me buy you a coffee/drink for your troubles, I'll be there for sure.

Attachments

  • thanks.gif (832.1k)

Jeffrey Roark

RE: Drawings and rep instances WON'T LOAD when opening a PLMEntity from a script using Search session service
(in response to Daniel Koman)

Glad that was it. Always happy to share some tips. I was running in to the same issue but I needed to load Knowledge Specification when loading the product.  I am in Sydney, so not likely going to attend COE.  Missing the community!