Recent Posts

Pages: [1] 2 3 ... 10
1
AutoLISP (Vanilla / Visual) / Re: why the param can not return the value?
« Last post by guohq on Today at 08:24:59 pm »
Although the problem is not resolved,thank you all the same.
2
AutoLISP (Vanilla / Visual) / Hide Frame
« Last post by FABRICIO28 on Today at 02:52:07 pm »
Hi guys,

The code bellow insert a block. I'd like to hide the frame of the block. How Can I do that?
I have to explode the block and set hide frame.

Code: [Select]
(defun c:CQ nil
(command "_.layer" "_T" "MARGEM" "_M" "MARGEM" "c" "7" "" ""
     "_.layer" "_T" "MARGEM" "_U" "MARGEM" "_M" "MARGEM" "c" "7" "" "")
(command "LAYER" "S" "MARGEM" "" "insert" "MARGEM" pause "" "" ""))

(command "IMAGEFRAME" "0" "" "")?

didn't work.

Thank in advance
3
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by irneb on Today at 08:30:09 am »
Here is the drawing from the shaft, which was based from  0 + 000.00  to 0+ 662.87.
When you insert a block name ATRIBUT anywhere showing the shaft should we attribute value STACIONAZA show where or to automatically fill in the field.
Home values ​​together does not have to be 0 + 000.00 but users need to say that the initial value.
OK, the move/copy idea means you'd need to incorporate a reactor to catch those actions.

The rest is reasonably simple as you'd use vlax-curve-getClosestPointTo to find the exact point on the polyline from the block's insertion point. Then you use the vlax-curve-getDistAtPoint function to obtain how far along the polyline that is. To add some starting length you'd probably need to save that after asking the user - you might need to save it as XData / LData / XDictionary of the polyline itself.
4
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by todor on Today at 08:12:33 am »
Хвала Марко.
Овде је цртеж са осовиним који је стациониран од 0+000.00 до 0+662.87.
Када убацим блок АТРИБУТ  било где показујући осовinu треба  да ми вредност атрибута СТАЦИОНАZА покаже na којој сам стачижи односно да се то аутоматски поље попуни.
Почетна вреднош не мора да буде 0+000.00 већ треба корисник да казe која је почетна вредност.



Thank you Marko.

Here is the drawing from the shaft, which was based from  0 + 000.00  to 0+ 662.87.
When you insert a block name ATRIBUT anywhere showing the shaft should we attribute value STACIONAZA show where or to automatically fill in the field.
Home values ​​together does not have to be 0 + 000.00 but users need to say that the initial value.
5
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by ribarm on Today at 07:44:49 am »
Dragane, bolje koncipiraj pitanje... Kako blok o kome govoris treba da izgleda, da li treba da sadrzi atribute koji bi imali vrednost o kojima govoris : 40, 20, 8 ? Da li bi onda taj blok trebalo da bude rasporedjen duz te linije (krive) na tim intervalima? Prosto napisi sta bi bili inputi i sta bi trebalo da bude rezultat (kako bi zeleo da rutina funkcionise)?

Pozeljno je upload-ovati crtez pre rutine i crtez posle exzekucije komande...
 
Da li je potrebno uneti startnu vrednost krive, ili je to uvek 0.0?
Zgodno bi bilo ako bi upload-ovao blok sa kojim baratas, jednom recju *.DWG od pre i posle...



Dragan, please clarify your question better... How should block you are speaking about look like, should it have to have attributes that would have values you're speaking : 40, 20, 8 ? Should that block then be distributed along that line (curve) at those intervals? Simply write what would be inputs and what should be result (how would you like routine to function)?

It's preferable to upload before and after pictures or drawings when routine is executed...

Is it necessary to specify starting value of curve, or this is always 0.0?
It would be nice if you could upload block you are working with, in other words *.DWG of before and after...
6
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by todor on Today at 07:28:16 am »
Here's specifically why we should
I have a path that starts from 0+000.00 to 40 + 000.00 . Shaft times a polyline. I should interject signs next to the shaft (there are plenty, the signs are in the block) and when I put a sign that automatically reads chainage times to the point where I put a sign.
Excuse the language.
7
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by todor on Today at 07:21:44 am »
Your dynamic block reads the entire length of the line, and I need only the length that show.
Nope, it reads the position along the line where the text is placed. Adjust that then do a regen so the field updates.

You're right, now I've seen, I'm sorry.
But if it is a polyline ..... or a longer line ....
So I need to show when the block insert point block that has an attribute in itself to read the length of the line, or where I showed.
8
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by irneb on Today at 07:19:06 am »
Perhaps I'm misunderstanding. Could you post a sample DWG of what you want to see as a result?
9
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by irneb on Today at 07:16:59 am »
Your dynamic block reads the entire length of the line, and I need only the length that show.
Nope, it reads the position along the line where the text is placed. Adjust that then do a regen so the field updates.
10
AutoLISP (Vanilla / Visual) / Re: line length Anywhere along the line
« Last post by todor on Today at 07:11:48 am »
irneb
This is a dynamic block, but I need to show the line on osnap on nearest on and where we show that the apparent length (ie, if the line starts at 0 and I showed the half-lines in the block will write polovona lines).

Your dynamic block reads the entire length of the line, and I need only the length that show.
Lee Mac
You're right, it does not matter whether the polyline or line, and have the drawings to refer to the line that I think (if there are more)
Thank you.
Pages: [1] 2 3 ... 10