e.mounir Posted December 30, 2009 Share Posted December 30, 2009 Hi all I have REFDES.LSP and I used it from long time it makes automatic number after the text but now I need it makes the number before the text Can any one make it and attached it for me please REFDES.LSP Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 30, 2009 Share Posted December 30, 2009 So instead of looking like this: A1 you want it to look like this: 1A. Is that correct? Quote Link to comment Share on other sites More sharing options...
e.mounir Posted December 30, 2009 Author Share Posted December 30, 2009 Yes, I need 1A Quote Link to comment Share on other sites More sharing options...
lpseifert Posted December 30, 2009 Share Posted December 30, 2009 Hint... try swapping ct and (itoa sn) Quote Link to comment Share on other sites More sharing options...
ILoveMadoka Posted December 30, 2009 Share Posted December 30, 2009 It will look like this: (setq nxt (strcat (itoa sn) ct )) Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 30, 2009 Share Posted December 30, 2009 Should probably reverse the lines that ask for the Designator Letter and the Starting Number too, right? Not that the result isn't what the OP is looking for. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted December 30, 2009 Share Posted December 30, 2009 Do either of these help you? http://www.cadtutor.net/forum/showthread.php?t=37420 http://www.cadtutor.net/forum/showthread.php?t=35234 Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 30, 2009 Share Posted December 30, 2009 Lee: Judging by some of the presets in the lisp routine the OP is using I'm not sure, at this point anyway, he could use your fantabulous(!) routines. His loss. Quote Link to comment Share on other sites More sharing options...
ILoveMadoka Posted December 30, 2009 Share Posted December 30, 2009 I think the code needs some "other tweaking" as well. It works but SHEESH!! Quote Link to comment Share on other sites More sharing options...
ReMark Posted December 30, 2009 Share Posted December 30, 2009 The code must have been specific to this one company perhaps to accommodate making a "scaled" drawing in model space? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.