Is there a way to turn FDO/SDE layers on/off from the command line?

Is there a way to turn FDO/SDE layers on/off from the command line?

Anonymous
Not applicable
509 Views
4 Replies
Message 1 of 5

Is there a way to turn FDO/SDE layers on/off from the command line?

Anonymous
Not applicable

I would like to create a macro to put in a tool palette to turn FDO/SDE layers on/off.

0 Likes
510 Views
4 Replies
Replies (4)
Message 2 of 5

Kent1Cooper
Consultant
Consultant

That's not quite enough information, but I'll assume that you mean all Layers whose names begin with either FDO or SDE.

 

Most Layer-command options [including On and Off] can be applied to more than one Layer name with comma separations.  And wildcards can be used.  To turn them all off:

'-LAYER OFF FDO*,SDE* ;

 

and the flip-side similarly with ON in place of OFF.  The apostrophe prefix lets you use it even in the middle of another command, e.g. while drawing something like a Line.

 

If my assumption is incorrect, give us a more detailed explanation of what you want them to do.  With more code, it could be done as a toggle [either On or Off, whichever they are not currently].  The FDO's and the SDE's could each have their own macros.  The On version(s) could Thaw as well as turn On the Layers, in case any might be Frozen.  Etc., etc.

Kent Cooper, AIA
0 Likes
Message 3 of 5

Anonymous
Not applicable
Kent,
Thanks but I'm looking for a way to turn off FDO (Feature Data Objects) and SDE (Spatial Database Engine), - they're not regular AutoCAD layers, they're for connecting to GIS data stores. So far, I haven't found a way to access their visibility state via the command line. I appreciate the reply.
Dan
0 Likes
Message 4 of 5

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:
... I'm looking for a way to turn off FDO (Feature Data Objects) and SDE (Spatial Database Engine), - they're not regular AutoCAD layers, they're for connecting to GIS data stores. ....

You might be better off asking in the Civil 3D Forum, or elsewhere depending on what software you're using.

Kent Cooper, AIA
0 Likes
Message 5 of 5

braudpat
Mentor
Mentor
Hello

As far as I know, you can access to MAP/CIVIL FDO features ONLY with DotNet programming ...
So it's reserved to Dotnet + MAP FDO specialists !


Regards, Patrice (I am not an Autodesk Advisor)
Patrice ( Supporting Troops ) - Autodesk Expert Elite
If you are happy with my answer please mark "Accept as Solution" and if very happy please give me a Kudos (Felicitations) - Thanks

Patrice BRAUD

EESignature


0 Likes