.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set Named UCS Active

1 REPLY 1
Reply
Message 1 of 2
pcaetano
457 Views, 1 Reply

Set Named UCS Active

Hi,

 

How do I set a Named UCS (one that I've created and named it "BILLY")  active in my document.

 

I've tried getting the active viewport and calling   vpActive.SetUCS(ObjectId)  But it doesn't seem to do anything.  It always seems to be pointing to unnamed one.

 

Thanks.

1 REPLY 1
Message 2 of 2
pcaetano
in reply to: pcaetano

NM found it..

 

Looks like what I was missing was the following:

 

pDoc.Editor.UpdateTiledViewportsInDatabase();      //Apply the changes to the database

...

vpActive.SetUcs(ObjectId)

...

pDoc.Editor.UpdateTiledViewportsFromDatabase();  //Push the changes from the database "Live"

 

 

Figured I should post it here in case others needed it

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost