Open Clients model in viewer mode

Open Clients model in viewer mode

bcampbell11
Advocate Advocate
1,076 Views
3 Replies
Message 1 of 4

Open Clients model in viewer mode

bcampbell11
Advocate
Advocate

I am trying to create a program that will open models in viewer mode.  I have successfully got the viewer mode, model detached to work.  But cannot get the viewer mode, not detached to work if the central model is not found (model from the client).  It goes through everything like it is working fine, but at the very end, everything turns grey and it freezes.  Attached is a journal file.  Of course, this all works manually, just not programatically.

 

I am using:

uiapp.OpenAndActivateDocument(path, openopt, False)

 

 

Any ideas?

 

Thanks!!

0 Likes
Accepted solutions (1)
1,077 Views
3 Replies
Replies (3)
Message 2 of 4

rosalesduquej
Alumni
Alumni

Hi Brian,

 

I'm having a bit of difficulty understanding the steps you are mentioning. I'm not too familiar with Viewer Mode from the API, but have you tried debuggin and step into to check if something is changing when you try it with the model that makes everything go gray.

 

Could you explain a bit more in detail what are you trying to do. Ii would help us a lot if you could share some code with us take a look at it, but please keep in mind to isolate the problem and send a small, buildable sample project that demonstrates the behavior. Do not send us any information that you consider to be a trade secret to your company.

 

Thanks,

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes
Message 3 of 4

bcampbell11
Advocate
Advocate
Accepted solution

thanks for th reply.  I have solved this issue by just using process.start(path) and OnStartup together.  So it is all good now.  

Thank You!

0 Likes
Message 4 of 4

rosalesduquej
Alumni
Alumni

Hi Brian,

 

Great glad to hear you were able to resolved your problem. 

 

 



Jaime Rosales D.
Sr. Developer Consultant
Twitter | AEC ADN DevBlog
0 Likes