几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】project files search path (http://www.dimcax.com/hust/showthread.php?t=18246)

yang686526 2009-05-07 12:03 AM

【转帖】project files search path
 
project files search path
project files search path
is there a way to specify the "project files search path" in dwgdirect for xrefs with the "no path" setting?
thanks,
chad
if you override oddbhostappservices::findfile() you can search for xrefs using paths your application knows.
sergey slezkin
quote:
originally posted by sergey slezkin
if you override oddbhostappservices::findfile() you can search for xrefs using paths your application knows.
perfect! thanks for the quick response, sergey.
chad
hi,
concept of projectname in autocad for information:
autocad stored the pathinformation for projectname in registry. you will found these informations in:
code:
product-key: example {software\autodesk\autocad\r15.0\acad-1:407}
product-key: example {software\autodesk\autocad\r16.1\acad-301:407}
product-key: example {software\autodesk\autocad\r16.2\acad-4001:407}
activecprofile: with (getvar "cprofile")
[hkey_current_user\{product-key}\profiles\{activecprofile}\project settings]
example:
[hkey_current_user\software\autodesk\autocad\r16.2\acad-4001:407\profiles\hicads\project settings\igm]
"refsearchpath"="c:\\aktuell;c:\\aktuell\\00-projekte"
the projectname is stored in dwg. autocad search this projectname in registry, looks in given directories for declared xref's and loaded in current dwg.
so the best way to stored xrefs is:
(1) defined xrefs without absolutepath
(2) and put a projectname in currentdwg.
(3) write this projectname in your autocadprofile with directories.
___________
ralph


所有的时间均为北京时间。 现在的时间是 10:49 AM.