Jump to content

Recommended Posts

Posted
(sssetfirst nil (ssget "_X" '((0 . "INSERT") (10 . 0.0 0.0 0.0))))

  • Replies 32
  • Created
  • Last Reply

Top Posters In This Topic

  • hunszab

    16

  • Tharwat

    7

  • Lee Mac

    6

  • The Buzzard

    3

Posted
Hi all!

 

How can I select every object that is in a specific point?

To be more specific... I have blocks, so they have just one point. And I want to select a block that point is i.e. (0,0) or (x,y).

So how can I do that?

 

Thanks any help

 

Try the following to be saved with a variable ...

(setq BLK (ssget "_x" '((0 . "INSERT")(10 0.0 0.0 0.0))))

 

Regards,

Posted

Hi all!

 

I have 2 points (or n points) and I want to create an LWPOLYLINE. How can I do that?

I've tried this:

(entmake

(list

(cons 0 "LWPOLYLINE")

(cons 8 "0")

(cons 10 point1)

(cons 10 point2)

)

)

but doesnt work...

 

Thanks any help!!

Posted

Thanks!

It's good.

Now I have another problem.

I have a macro which contains a function, when I call it where will I get that it returns?

On the prompt or system variable or where? Because it always returns nil...

Any help ?

Posted

Your question is not a clear at all my friend ......

 

Give a direct question.

Posted

Now I have another problem.

I have a macro which contains a function, when I call it where will I get that it returns?

On the prompt or system variable or where? Because it always returns nil...

Any help ?

 

The never-ending stream of questions....

 

The function call itself will provide the function return, i.e.

 

(myfunction)

==> Return

Posted

I try to be specific.

I have a dwg file, macro included. In the macro there are a lot of function.

For example, when I call the function I will return the result like I would have called an autolisp function or I return the result in a specific system variable?

(command "-VBARUN" "mymacroname.mymacrofunctionname")

I ask this, because when I use this command it always return nil, but it should have return something else..

 

I hope I was clear enough.

 

thanks any help

Posted

When you use Lisp in a macro, there is no need for (command) .... just write the name of the command directly. things like :

^C^C_-VBARUN.......... THE REST ...

 

But if you use a complete lisp in a macro, it is better to call only the name of the Lisp program.

 

Regards

Posted

thanks, I've allready found the solution.

Posted

Hi!

 

I have the following problem:

I want to build a menu that has 2 popup_list and I want to bind the first popup_list to a dotted list first , the second popup_list to the dotted list second part.

I.G: I have this list "mylist" : ( ( 1 . "first") (2 . "second"))

 

how should I modify my command?---> (mapcar 'add_list mylist)

 

thanks any help!!!

Posted

Many ways to approach it, one of which may be:

 

(mapcar
'(lambda ( key lst )
   (start_list key)
   (mapcar 'add_list lst)
   (end_list)
 )
'("key1" "key2")
 (list (mapcar 'car mylist) (mapcar 'cdr mylist))
)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...