Author Topic: Dwgprefix set as projectname 'current'  (Read 2805 times)

0 Members and 1 Guest are viewing this topic.

lamarn

  • Swamp Rat
  • Posts: 636
Dwgprefix set as projectname 'current'
« on: January 21, 2015, 04:22:06 PM »
I am trying to set my current DWG supported
as projectname:current with DWGprefix as the registry entry.
So if it is loaded at opening of dwg i have a support directory at the same level.
I thought this might be handy for hatch pattern and fonts etc. to be supporteed

Found some material but it does not seem to work.
Any experience or idea's would be welcome

http://jtbworld.com/lisp/projectpaths.htm
Design is something you should do with both hands. My 2d hand , my 3d hand ..

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Dwgprefix set as projectname 'current'
« Reply #1 on: January 21, 2015, 04:54:47 PM »
Lets try to clarify :

You have a drawing named : ?
At this Path : ?
And you want to do exactly what. ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

lamarn

  • Swamp Rat
  • Posts: 636
Re: Dwgprefix set as projectname 'current'
« Reply #2 on: January 21, 2015, 07:09:09 PM »
I want to set the directory of my opened drawing to the list of support directories.
Not really a super special thought..
Design is something you should do with both hands. My 2d hand , my 3d hand ..

BlackBox

  • King Gator
  • Posts: 3770
Re: Dwgprefix set as projectname 'current'
« Reply #3 on: January 22, 2015, 12:24:55 AM »
I want to set the directory of my opened drawing to the list of support directories.

... In order to accomplish what, specifically, that you are currently unable to do?

Cheers

"How we think determines what we do, and what we do determines what we get."

ronjonp

  • Needs a day job
  • Posts: 7529
Re: Dwgprefix set as projectname 'current'
« Reply #4 on: January 22, 2015, 01:57:19 AM »
By default AutoCAD will find files within the current directory .. so no need to add it to the support paths.
Little test:
Code - Auto/Visual Lisp: [Select]
  1. (vl-every '(lambda (file) (findfile file)) (vl-directory-files (getvar 'dwgprefix) nil 1))

Windows 11 x64 - AutoCAD /C3D 2023

Custom Build PC

lamarn

  • Swamp Rat
  • Posts: 636
Re: Dwgprefix set as projectname 'current'
« Reply #5 on: January 22, 2015, 05:02:49 AM »
Ok thanks.
If that's the case it won't be nessescary.
But i have some doubt it worsk with all extension types..
Design is something you should do with both hands. My 2d hand , my 3d hand ..

BlackBox

  • King Gator
  • Posts: 3770
Re: Dwgprefix set as projectname 'current'
« Reply #6 on: January 22, 2015, 05:31:30 AM »
But i have some doubt it worsk with all extension types..

You still haven't clarified what you're trying to do. 

What file extensions are you attempting to make AutoCAD 'find' in DWGPREFIX that it cannot already?
"How we think determines what we do, and what we do determines what we get."

lamarn

  • Swamp Rat
  • Posts: 636
Re: Dwgprefix set as projectname 'current'
« Reply #7 on: January 22, 2015, 06:32:08 AM »
.pat files but i noticed that these are recogniced afterwards.
(Revit produces a lot of .pat files.. need to get a grip on them)
Design is something you should do with both hands. My 2d hand , my 3d hand ..

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: Dwgprefix set as projectname 'current'
« Reply #8 on: January 22, 2015, 07:38:31 AM »
oh, you're asking about Revit, well that's different
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.