API for data shortcuts?

API for data shortcuts?

Anonymous
Not applicable
884 Views
9 Replies
Message 1 of 10

API for data shortcuts?

Anonymous
Not applicable
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
885 Views
9 Replies
Replies (9)
Message 2 of 10

Anonymous
Not applicable
............I knew I couldn't be the only one thinking that. 😉

I plan to look into that, as well, but I doubt I'll find anything you
haven't.

Adesk: Please add this...........we can handle paths, I swear. 😉

"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 3 of 10

Anonymous
Not applicable
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 4 of 10

Anonymous
Not applicable
Thanks. It doesn't seem to be in the registry.

- Aaron


"Laurie Comerford" wrote in message
news:5935391@discussion.autodesk.com...
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 5 of 10

Anonymous
Not applicable
For 2009, it appears to be in xml:

C:\Documents and Settings\username\Application Data\Autodesk\C3D
2009\enu\Project Management\ShortcutFolders.xml

Sincerely,
Drew Burgasser, P.E.
CAD Masters, Inc.
www.cadmasters.com




"Aaron Lance" wrote in message
news:5935918@discussion.autodesk.com...
Thanks. It doesn't seem to be in the registry.

- Aaron


"Laurie Comerford" wrote in message
news:5935391@discussion.autodesk.com...
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 6 of 10

Anonymous
Not applicable
My hero! Thanks Drew.

Wait a minute... Yuck! XML!?... multiple paths... current="0"...
current="-1"... This thing is an obomination!

Well I guess it's my fault for asking. At least I can hope they're moving
from the registry to xml files so that a future version can run on other
OSes.

Can anyone recommend a COM object for walking XML trees? I've tried a few
times before but never been happy with the results.

- Aaron Lance


"Drew Burgasser" wrote in message
news:5935949@discussion.autodesk.com...
For 2009, it appears to be in xml:

C:\Documents and Settings\username\Application Data\Autodesk\C3D
2009\enu\Project Management\ShortcutFolders.xml

Sincerely,
Drew Burgasser, P.E.
CAD Masters, Inc.
www.cadmasters.com




"Aaron Lance" wrote in message
news:5935918@discussion.autodesk.com...
Thanks. It doesn't seem to be in the registry.

- Aaron


"Laurie Comerford" wrote in message
news:5935391@discussion.autodesk.com...
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 7 of 10

Anonymous
Not applicable
Everything we're getting from the ADN side says this is a wasted effort.
The program only loads the XML file at launch, not at dwg or change, so
there's no since in changing the XML, it won't do any good until launch.

Perhaps someone can find a backdoor around it through brute force, but
so far, we're hit and miss in our efforts.
--
James Wedding, P.E.
Engineered Efficiency, Inc.
The Site: www.eng-eff.com
The Blog: www.civil3d.com
The Book: www.masteringcivil3d.com
C3D 08SP2/09 Mac Book Pro, XP SP2, 4GB
0 Likes
Message 8 of 10

Anonymous
Not applicable
That's was I was starting to think. I could change the xml, but then how do
I tell Civil 3D to reload it.

Thanks for the confirmation.

wrote in message news:5936165@discussion.autodesk.com...
Everything we're getting from the ADN side says this is a wasted effort.
The program only loads the XML file at launch, not at dwg or change, so
there's no since in changing the XML, it won't do any good until launch.

Perhaps someone can find a backdoor around it through brute force, but
so far, we're hit and miss in our efforts.
--
James Wedding, P.E.
Engineered Efficiency, Inc.
The Site: www.eng-eff.com
The Blog: www.civil3d.com
The Book: www.masteringcivil3d.com
C3D 08SP2/09 Mac Book Pro, XP SP2, 4GB
0 Likes
Message 9 of 10

Anonymous
Not applicable
Hi Aaron,

I can help on the XML ActiveX issue.

All Windows install include one.

However, I found a freeware object from Chilkat simpler to use and better
documented.

http://www.chilkatsoft.com/


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5935999@discussion.autodesk.com...
My hero! Thanks Drew.

Wait a minute... Yuck! XML!?... multiple paths... current="0"...
current="-1"... This thing is an obomination!

Well I guess it's my fault for asking. At least I can hope they're moving
from the registry to xml files so that a future version can run on other
OSes.

Can anyone recommend a COM object for walking XML trees? I've tried a few
times before but never been happy with the results.

- Aaron Lance


"Drew Burgasser" wrote in message
news:5935949@discussion.autodesk.com...
For 2009, it appears to be in xml:

C:\Documents and Settings\username\Application Data\Autodesk\C3D
2009\enu\Project Management\ShortcutFolders.xml

Sincerely,
Drew Burgasser, P.E.
CAD Masters, Inc.
www.cadmasters.com




"Aaron Lance" wrote in message
news:5935918@discussion.autodesk.com...
Thanks. It doesn't seem to be in the registry.

- Aaron


"Laurie Comerford" wrote in message
news:5935391@discussion.autodesk.com...
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes
Message 10 of 10

Anonymous
Not applicable
I'm putting that on the back-burner for now.

I was having some luck with Msxml2.DOMDocument.4.0, but it looks like
editing the xml won't let me set the shortcut and working paths the way I
want to anyway.

Thanks for the offer.


"Laurie Comerford" wrote in message
news:5936304@discussion.autodesk.com...
Hi Aaron,

I can help on the XML ActiveX issue.

All Windows install include one.

However, I found a freeware object from Chilkat simpler to use and better
documented.

http://www.chilkatsoft.com/


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5935999@discussion.autodesk.com...
My hero! Thanks Drew.

Wait a minute... Yuck! XML!?... multiple paths... current="0"...
current="-1"... This thing is an obomination!

Well I guess it's my fault for asking. At least I can hope they're moving
from the registry to xml files so that a future version can run on other
OSes.

Can anyone recommend a COM object for walking XML trees? I've tried a few
times before but never been happy with the results.

- Aaron Lance


"Drew Burgasser" wrote in message
news:5935949@discussion.autodesk.com...
For 2009, it appears to be in xml:

C:\Documents and Settings\username\Application Data\Autodesk\C3D
2009\enu\Project Management\ShortcutFolders.xml

Sincerely,
Drew Burgasser, P.E.
CAD Masters, Inc.
www.cadmasters.com




"Aaron Lance" wrote in message
news:5935918@discussion.autodesk.com...
Thanks. It doesn't seem to be in the registry.

- Aaron


"Laurie Comerford" wrote in message
news:5935391@discussion.autodesk.com...
Hi Aaron,

I haven't looked, but a value for the path could well be in the registry.


--


Regards

Laurie Comerford
"Aaron Lance" wrote in message
news:5933824@discussion.autodesk.com...
I still don't like the way data shortcuts work.

I would like to write automation so that the data shortcut "Working Folder"
is always the same as the "DWGPREFIX" variable. Then I would like to set
the data shortcuts folder to {"DWGPREFIX"}/_shortcuts.

I would like to be able to to create/verify/delete data shortcuts through
code, but at this point, I'd settle for the ability to set the working
folder and the data shortcuts folder for the drawing.

There is a gaping hole in the API regarding data shortcuts. Is there some
undocumented method I can use for now?

- Aaron
0 Likes