AutoCAD Map 3D Developer
Welcome to Autodesk’s AutoCAD Map 3D Developer Forums. Share your knowledge, ask questions, and explore popular AutoCAD Map 3D Developer topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Get selected FDO layer(from task pane) using AutoCAD .net

4 REPLIES 4
Reply
Message 1 of 5
dr5156
737 Views, 4 Replies

Get selected FDO layer(from task pane) using AutoCAD .net

Hi,

 

Happy New Year to all.

 

How to get selected FDO layer or layer group using AutoCAD .net..

 

Acutally i am trying to save set of layers from group layer.

 

Some one please help me.

 

Regards

Dayalan

 

 

Regards,
Dayalan
4 REPLIES 4
Message 2 of 5
Partha.Sarkar
in reply to: dr5156

Hi Dayalan,

 

Your question doesn't elaborate at what step you want to know the selected FDO layer ?

Did you check the following blog post in ADN DevBlog ?

 

Accessing Layer names from the selected FDO Features


Does it help ?



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

Message 3 of 5
dr5156
in reply to: dr5156

Hi partha,

 

Thanks for your reply.

 

I want to save the layers from selected layer group.

 

Example: Selet a fdo layer from task pane, right click and we have the menu "Save Layer". By using this we can save in a .layer format.

 

The above option supports to save one layer at a time.

 

But my requirement is, user will select fdo Group layer in Task pane. After that we need to provide menu and button to save all layers under the group layer at single time by creating new menu on group layer and button in ribbon bar.

 

I am able to create new ribbob buttons. But my problem is, 1. how to create a menu on gorup layer(in the task pane)? 2. how to acces selected fdo layer(from task pane) from my autocad .net code.

 

Note: I know reading the features from fdo layer. This is not my requirment. My target is to get selected layer in task pane from .net code.

 

I belive the above information gives you clear info. Could you please provide some solutions.

 

 

Regards

Dayalan

Regards,
Dayalan
Message 4 of 5
dr5156
in reply to: dr5156

Any support?

 

Regards

Dayalan

Regards,
Dayalan
Message 5 of 5
Partha.Sarkar
in reply to: dr5156

Hi Dayalan,

 

Example: Selet a fdo layer from task pane, right click and we have the menu "Save Layer". By using this we can save in a .layer format.

 

>>>  There is no public API to add a context menu in Display Manager UI components, like the above one, sorry. You may have to look for a workaround of iterating through the Layers in a LayerGroup using Geospatial Platform API. Did you try that path ?

 

Thanks,



Partha Sarkar
Developer Technical Services
Autodesk Developer Network

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

Post to forums  

Autodesk Design & Make Report

”Boost