In this Zip file you will find to lisp files. How would I add this (fixtextstyle.lsp) to the Phc lisp so that it will be automatically loaded?
Thank you,
Brad
|
|
|
In this Zip file you will find to lisp files. How would I add this (fixtextstyle.lsp) to the Phc lisp so that it will be automatically loaded?
Thank you,
Brad
Two ways:
(autoload "fixtextstyle.lsp" '("fx"))
or
(load "fixtextstyle.lsp)
The first way autoloads the routine on first use and will be stay loaded for the rest of the drawing session.
The second way loads the routine when it comes to it when that LISP is run.
I thought
(defun c:RemArchT (/)
(autoload "fixtextstyle.lsp" '("fx"))
(c:RKTI)
(c:RURL)
looked just fine, but didn't really look at the rest of the routine.
Originally Posted by todw
What type of problems are you having regarding the loading of the fixtextstyle.lsp? As todw responded on your question, you need to load the file with [code[(load "fixtextstyle.lsp")[/code] You would then call the function name you are trying to run (c:fx)
Being that a "STYLE" is not an entity, I don't believe you can modify the "STYLE" with entmod. (I could be wrong)
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Do I add what todw said to the fixtextstyle.lsp or the the Phc.lsp? If I add it the the Phc.lsp how would it look?Originally Posted by richardl.25628
You would need to add it to the phc.lsp fileOriginally Posted by BCrouse
Again, I do not think you can entmod a text style.Code:; This will load the fixtextstyle.lsp file. This file must ; be able to be found within your support directories. (load "fixtextstyle.lsp") ; This then runs the c:fx function as you have it defined ; in the fixtextstyle.lsp file (c:fx)
I hope this helps.
If you have a technical question, please find the appropriate forum and ask it there.
You will get a quicker response from your fellow AUGI members than if you sent it to me via a PM or email.
jUSt
Thank you todw and richard.25628 for your help. I got it to work now. How could I get this to update and save the text styles when publish is running? Is it possible? How could I get this to update dwgs that are xref'd?
Thank you,
Brad
Code will not execute in a background publish operation.Originally Posted by BCrouse
I'm not sure that this is possible, you could get the routine to change width factors or actually change the style (thats change the style that a text object uses, not the actual "style") in the current drawing, but it's not very practical plus the changes will be undone as soon as the xref is reloaded. Your best bet is to just run the routine on each individual drawing.How could I get this to update dwgs that are xref'd?
Ty