Alias General Discussion

Alias General Discussion

Reply
Active Member
sgeggie
Posts: 7
Registered: ‎04-11-2013
Message 1 of 2 (297 Views)
Accepted Solution

Getting layer status in Alias API

297 Views, 1 Replies
04-11-2013 04:31 AM

I'm using the Alias API to retrieve model data from .wire files. I have a file here with two layers, the empty default layer and another layer, "what", which contains geometry. "what" is set to be invisible, but is currently selected in Alias.

Using the API, I can detect that "what" is invisible with the AlLayer::invisible() method. However, the AlLayer::isPicked() method always returns false. So even though the geometry is visible in Alias (due to its layer being selected), I cannot detect this with the API. I have attached the file.

Is there some other way to detect that this geometry is currently visible in Alias, despite having a layer with "invisible" status?

 

Thanks in advance.

The solution was to use AlUniverse::creationLayer() rather than isPicked.

Active Member
sgeggie
Posts: 7
Registered: ‎04-11-2013
Message 2 of 2 (245 Views)

Re: Getting layer status in Alias API

06-25-2013 01:46 AM in reply to: sgeggie

The solution was to use AlUniverse::creationLayer() rather than isPicked.

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.