(C:BG_SCR_Generator "BG:BatchBlockReplace" (strcat (vl-prin1-to-string blkOG) " " (vl-prin1-to-string BlkFile)))
"(C:" lispfile " " arg ") "
Alternatively:Lee, thank you so much. I tried this exact approach yesterday but was a tad off basis and I was struggling with my testing in the command console. The way it prints the the output is confusing to me. I attached a screenshot to show what I mean.Code - Auto/Visual Lisp: [Select]
Just be aware that precision is lost if supplying reals - you may consider using rtos to perform the conversion in such cases, or better yet, write your own string conversion function to handle all possible types.
49Vovka, Thanks man. I tried this same thing yesterday and started getting really confused with the way that the vl-prin1-to-string was spitting this out. Very much appreciate your help.Code: [Select](C:BG_SCR_Generator "BG:BatchBlockReplace" (strcat (vl-prin1-to-string blkOG) " " (vl-prin1-to-string BlkFile)))
134Code: [Select]"(C:" lispfile " " arg ") "
Any reason that you have not set where your lisp files are saved, as a supported search path ? Much easier to program.Bigal, What line are you seeing this in? That is how I do it. In short, my thinking was that by not requiring the lisp to be in support path allows for most modularity.
"(load " (vl-prin1-to-string (vl-filename-base lispFile)) " nil) "
"(load " "\"" filename "\"" ") ")
I haven't looked over your code at the moment but to have access to the a Lisp's structure you may need to use DEFUN-Q (unless you are reading a file; in that case I imagine you'd have to do a little parsing of the function and just keep a list of arguments).Would love to see your approach if you are willing to share. I didnt go CoreConsole route because of limited functions available for use.
To give you something to check out; please look over a utility of Vladimir Nesterovsky's I posted a while back that does something similar.
https://www.theswamp.org/index.php?topic=48036.msg530747#msg530747
As far as general drawing scripting; I have a nice little batch script I have been using lately that uses ACCORECONSOLE.EXE I could share if you'd be interested.
Would love to see your approach if you are willing to share. I didnt go CoreConsole route because of limited functions available for use.
Wow, Thank you!!! Looking at nowWould love to see your approach if you are willing to share. I didnt go CoreConsole route because of limited functions available for use.
The only stipulations I have are: 1. be kind, and 2. contribute any improvements.
https://www.theswamp.org/index.php?topic=56891.new#new
Alternatively:Lee, thank you so much. I tried this exact approach yesterday but was a tad off basis and I was struggling with my testing in the command console. The way it prints the the output is confusing to me. I attached a screenshot to show what I mean.Code - Auto/Visual Lisp: [Select]
BTW Lee, thank you for everything you do man. I've learned 80% of my knowledge from you. Thanks for giving back to us and helping us grow.