Jump to content

Beginner's question about matchprop command and ssget


sean112

Recommended Posts

Hello, all

I am a beginner trying to create a program that can help me to match text box from a fixed position to another text box.

Here is part of my code:

(command "matchprop" (ssget '(597.5 88.2)) (ssget "W" '(600 62) '(625 100)))

(command)

 

The region that I selected should be correct since the result sometimes works properly but sometimes not. The textbox is just a text, not mtext. The input value does not change the outcome.

 

Thanks ahead to everyone that responses.

Link to comment
Share on other sites

I'm hoping someone will explain why "W" didn't work when I tried this, either. If I changed it to "_C" that seemed to work, though. Hmmm...

Link to comment
Share on other sites

I'm hoping someone will explain why "W" didn't work when I tried this, either. If I changed it to "_C" that seemed to work, though. Hmmm...

with "W" entire object must fit into the selection region, with "C" all objects that even partially fit into the selection region will be selected as well. Perhaps that's applies to your case

also

Only objects visible in the drawing area at the time of selection will be selected by this method. Consider temporarily zooming to the selection window before performing the selection, and then zoom previous to restore the original screen position.
Link to comment
Share on other sites

Man, I thought I had the window completely enclosing the texts, but must have been off. Works now. Thanks!

 

I spent about 3 hours trying to figure out why the fence, window and box work. And I found out it's just because the reference is not visible on the screen.:cry:

Link to comment
Share on other sites

with "W" entire object must fit into the selection region, with "C" all objects that even partially fit into the selection region will be selected as well. Perhaps that's applies to your case

also

 

Thanks vanowm. The second quote really helped me. Do you by any chance know how to use "getstring" and let the user input with space? My version is 2014, and "/ntext" did not work for me.

 

Really appreciated.

Link to comment
Share on other sites

I spent about 3 hours trying to figure out why the fence, window and box work. And I found out it's just because the reference is not visible on the screen.:cry:

 

Hello sean112, welcome to CADTutor. :)

 

If you are learning the fine art of writing your own lisps, you should know about

 

http://www.lee-mac.com/boundingbox.html

 

Thanks Lee! :beer:

 

Lee's excellent site has a special FUNCTIONS section for folks like yourself, learning the ropes, in addition to a wealth of highly evolved and broad ranging productivity enhancing lisps. By studying Lee's codes, you can reverse engineer, and get the jump on the learning curve!

I thought seeing this particular link might help you to explore new approaches to the task at hand, and that having an available library such as this would be a good tool. :)

Link to comment
Share on other sites

Hello sean112, welcome to CADTutor. :)

 

If you are learning the fine art of writing your own lisps, you should know about

 

http://www.lee-mac.com/boundingbox.html

 

Thanks Lee! :beer:

 

Lee's excellent site has a special FUNCTIONS section for folks like yourself, learning the ropes, in addition to a wealth of highly evolved and broad ranging productivity enhancing lisps. By studying Lee's codes, you can reverse engineer, and get the jump on the learning curve!

I thought seeing this particular link might help you to explore new approaches to the task at hand, and that having an available library such as this would be a good tool. :)

 

Thanks Dadgad

Link to comment
Share on other sites

Thanks vanowm. The second quote really helped me. Do you by any chance know how to use "getstring" and let the user input with space? My version is 2014, and "/ntext" did not work for me.

 

Really appreciated.

 

Online help for getstring explains it with examples.

http://help.autodesk.com/view/ACD/2017/ENU/?guid=GUID-B139EFBD-74B7-4276-B422-D2186F7D8D0A

Link to comment
Share on other sites

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...