PDA

View Full Version : sd_customize with PE2.0


wathavy
04-06-2008, 06:00 AM
Hi.
Thank you for the PE2.0 information.
I wanted to use my OSM's sd_customize for PE 2.0 as well.
But it seems to me the file path for my lisp codes are not properly written.
Unless I write absolute path from drive name, it does not recognize.
Would anyone tell me the right path for loading lisp when I have loading path as follow?

;;Load some lisp
;;Set property to default
;;(load "20.00/customized/sd_reset_part_props.lsp") <-- does not work.
(load "C:/Users/tid/AppData/Roaming/CoCreate/Modeling PE/20.00/customized/achsabstand_to.lsp") <-- works fine.The lisp codes are located in 'customized' folder under '20.00' folder.

Mike Swartz
04-07-2008, 06:27 AM
The 20.00 folder is where the system stores and loads persistent data.

Modeling or Annotation will not search that directory for your own customization.
You need to continue to use the full path name.

wathavy
04-09-2008, 05:00 AM
Mike, thank you.
I have used absolute path for all customized files.

Wolfgang
04-09-2008, 10:27 AM
if you have your own customize directory I see at least 2 choices:

a) even if you are a single user you can make use of environment variables SDCORP/SITECUSTOMIZE DIR

b) in your local (version/platform depended) customize dir you place ONE single load command with absolute pathname to your xx_customize file:
(load "C:/Users/tid/AppData/Roaming/all_my_customize.lsp")
and 2nd: over there you do something like this:

(sd-with-current-working-directory "C:/Users/tid/AppData/Roaming/CoCreate/Modeling PE/20.00/"
(load "customized/achsabstand_to.lsp")
(load "osd_cad.de/flanalyse.lsp")
(load "osd_cad.de/kette.lsp")
;; etc.
)
I think the main problem in your question is: what is the current directory to execute load commands with relative pathnames.

Mike Swartz
04-09-2008, 11:47 AM
I'm pretty lazy when it comes to typing, so I create a directory named "CoCreate" at top level. I put all my customization files in this CoCreate directory.
Then my load commands look like this....
(load "C:/CoCreate/my_program.lsp")

I can use that same CoCreate directory for all versions of Modeling as well as Modeling PE.
Same with corp or site directories. I create a CoCreate directory as close to the root of my shared network drive as possible. Then I add corp and or site sub directories to it. That way I can set up something like this.
SDCORPCUSTOMIZEDIR= J:\CoCreate\corp
and
SDSITECUSTOMIZEDIR=J:\CoCreate\site

wathavy
04-09-2008, 02:18 PM
Oh, I will definitely try the suggested way.
Thank you Wolfgang.

I need to leave home, now.

wathavy
04-09-2008, 02:19 PM
Oh, that's an idea.
Thank you Mike.

wathavy
04-09-2008, 05:49 PM
Shoot, it worked great!
For both 3D and Annotations.
Thank you so much like Mega tons, Wolfgang.
:D