Recent Posts

Pages: [1] 2 3 ... 10
1
BasicCAD / Re: Select an entity with coords ?
« Last post by Lar on Today at 04:49:53 AM »


                    MESSAGE "Entity finded"
                    MESSAGE "Entity found"

 ;)


Actually, 331, 332 and 333 are the colors of the cursor (mouse), not the entity color.


When you use the 'entity' statement, the entity properties are usually in the 90's, but I guess the color properties came along later. They are in the 290's...
Code: [Select]
if sys(80)<>0 then
getselect sys(80), selected
entity selected
if sys(290) = 0 and sys(291) = 0 and sys(292) = 255 then      'if blue...
MESSAGE "Entity found"
else
MESSAGE "Entity not found"           ' this is not necessary but without it the macro would do nothing if the entity is not blue...
endif
endif


Note: when I copied your code and pasted into Notepad the spaces at the start of each were causing errors so I had to get rid of them.


Lar



2
BasicCAD / Re: Select an entity with coords ?
« Last post by deydope on Today at 12:25:53 AM »
I finally found a way to do this with the pointselect/getselect statement.
sorry for inconvenience

For those who are interested:
(It works on a 2d plane but i think it's gonna be working an 3d plane too)

sys(80) = 0
            >PointSelect
            {
                <PointXYZ [x2 + 70, y3]
                <Type 0
            }
            if sys(80) <> 0 then
                getselect sys(80), selected
                entity selected
                if sys(331) = 0 and sys(332) = 0 and sys(333) = 255 then
                    MESSAGE "Entity finded"
                endif
            endif
3
BasicCAD / Select an entity with coords ?
« Last post by deydope on Today at 12:12:31 AM »
Hi,

I have actually a problem, i need to get the color of an entity. I can select it with pointselect but i didn't find a way to get the color.

If someone have a solution it will be great :)

thanks for your time and sorry for bad english
4
BasicCAD / Re: A way to repeat the last macro ?
« Last post by Lar on October 11, 2017, 07:08:18 AM »

My current gripe concerning the F keys is that these new laptops' main focus is fun instead of work so they come with the 'play' controls sharing the F keys, with the play keys as default. You have to press the fn key to get the F keys.


To get the F keys to be default you have to edit the bios, and just opening the bios is a hit or miss.


Lar
5
BasicCAD / Re: A way to repeat the last macro ?
« Last post by Pearco on October 11, 2017, 06:46:04 AM »
Thanks Lar.
I did not know F3 would do that. My day just got brighter.
6
BasicCAD / Re: A way to repeat the last macro ?
« Last post by Lar on October 11, 2017, 06:30:12 AM »

F3 repeats a macro for me.


What version are you guys using? I remember many versions back F3 after a macro would run the last command that was in the macro (if there one) but now it just repeats the macro.


Lar
7
BasicCAD / Re: A way to repeat the last macro ?
« Last post by Bob P on October 11, 2017, 03:21:03 AM »
If you run the macro from the command line, all you have to do is press the spacebar/<enter> again.
8
BasicCAD / Re: A way to repeat the last macro ?
« Last post by Pearco on October 11, 2017, 03:11:35 AM »
deydope;

My way to repeat with a macro is to ask at the end of the macro if I want another with a question at it's end and if so it goes back to the start and run again. That may be too crude for some, but it works for me.
9
BasicCAD / A way to repeat the last macro ?
« Last post by deydope on October 11, 2017, 02:50:43 AM »
Hello there,

As you know, in dcad it's possible to repeat the last command by pressing f3 or an other key if you changed it but i was thinking if there is a way to do the same thing but with macro ?
I have already tried to use f3 but it says the symbol is not found.

If someone have an idea...
10
BasicCAD / Re: Delete entity
« Last post by deydope on October 11, 2017, 02:42:38 AM »
thank you so much for your answers, my problem is now resolved!
Pages: [1] 2 3 ... 10