scl = scale ,ht = text height This two lines call a general lisp that change the size of all insert block in the drawing. Sorry for my bad english. Please help ... Thanks
Title: Re: little help with pointsin.lsp
Post by: DEVITG on March 02, 2014, 08:15:59 PM
Pedro , me atrevo escribirte en castellano , que me imagino que es tu idioma nativo.
¿Donde quieres agregar las líneas ?
Para leer la variable USERI1 , primero debes asignarle un valor
(setvar 'USERI1 45)
USERI1 a USERI5 admite enteros 23 , 567 890 etc y tiene la ventaja de que se guarda en el DWG
si quieres puedes conectarte a mi correo, es mi nombre de usuario en gmail
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 03, 2014, 02:34:39 AM
Hello Devitg.Please write in english because i canot understand you !!!!! this is the user1 lisp i use for all my lisp
But in pointsin.lsp code i am confused. Can you help me ?
Thank you ..
Title: Re: little help with pointsin.lsp
Post by: irneb on March 03, 2014, 04:20:38 AM
First, the useri# sysvar only stores integers, not fractions. You might want to change that to userr1 instead so you can have scales of non integer values.
Second, if you want the text height adjusted for the scale ... then reading that LSP file it seems it uses DimScale x DimText to calculate the height. So either set a special DimStyle as current with the text height as you want it, or search through that list to use your calculation instead of where it uses getvar to get these 2 variables.
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 05, 2014, 10:21:03 AM
if i understand all the problem is only is this lines ?
Title: Re: little help with pointsin.lsp
Post by: irneb on March 06, 2014, 12:27:49 AM
Yes, that (* (getvar "dimscale") (getvar "dimtext")) gets those sysvars, multiplies them together and then passes the reult back to the surrounding form. In this case the command call at the position where it expects the block's scale factor.
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 06, 2014, 02:58:23 AM
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 07, 2014, 05:13:36 PM
Hi Kerry this is a dead link !!!
Title: Re: little help with pointsin.lsp
Post by: Kerry on March 07, 2014, 05:20:36 PM
The closing parenthesis should be in the link.
Fixed.
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 07, 2014, 05:35:36 PM
Kerry is using exactly the same code that I am trying to change (* (GETVAR "dimscale") (GETVAR "dimtxt")) This link does not help at all. Can you help?
Thanks
Title: Re: little help with pointsin.lsp
Post by: Kerry on March 07, 2014, 05:44:00 PM
What do you want to change. What do you want it to change to.
Only post the relevant code.
Consider this an exercise in asking the right question.
Title: Re: little help with pointsin.lsp
Post by: pedroantonio on March 07, 2014, 05:57:46 PM