Jump to content

Recommended Posts

Posted

I've been wanting to get hold of a LISP for replacing certain occurences of a block (but not the block globally, as the BLOCKREPLACE function would do).

 

I downloaded this VLX file from http://www.cadstudio.cz/en/download.asp?file=RIblock as it is perfect for what I wanted..... except that when it replaces the selected blocks it doesn't retain the original block's attributes (eg. scale), which is essential. Can anyone make any suggestions to help? Many thanks.

Posted

Can you please explain what does that lisp from cadstudio do ? or if you explain your needs of a lisp routine separately would be highly appreciated .

Posted

Hi Tharwat.

 

"The RIblock command prompts for the name of the replaced block (or for picking its sample), then you select the references of this block (to be replaced) and then you specify (by picking or by name) the new block. This new block will replace the selected references of the original block. Possible attributes with the same name (tag) will be automatically transferred from the replaced blocks."

 

I had thought that the last sentence implied that attributes such as scale and rotation would be maintained with the new block, but not so.....

Posted

Ah... I've worked out my problem. There is nothing wrong with the RIBLOCK.VLX file - the reason my new block was not scaling as per the block it was replacing was because I had the option ticked to scale uniformly when I created my replacement block. Taking that out has solved my issue. Happy days :)

  • 5 years later...
Posted

Does the .vlx file load the same way as a typical lisp routine would?

 

 

Thanks,

 

 

Anderson

Posted
Does the .vlx file load the same way as a typical lisp routine would?

 

Thanks,

 

Anderson

 

Welcome to CADTutor Anderson.

 

The answer to your question is yes.

 

Have a look at my signature below and there is a link says: How to load an AutoLISP program, so just hit the link and read the article.

Posted

I have it loaded, now I am struggling with the functionality of the command.

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