CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
RSS channel - CAD tips RSS tips
RSS discussions

Discussion Discussion forum

?
CAD discussions, advices, exchange of experience

CAD Forum - Homepage CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.

Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

auto block replacement lsp

 Post Reply Post Reply
Author
sam675 View Drop Down
Newbie
Newbie


Joined: 24.Dec.2024
Location: Qatar
Using: AutoCAD 2021
Status: Offline
Points: 6
Post Options Post Options   Thanks (0) Thanks(0)   Quote sam675 Quote  Post ReplyReply Direct Link To This Post Topic: auto block replacement lsp
    Posted: 12 hours 24 minutes ago at 08:49
uploads/977892/xch.lsp

Hello world!

hi guys, i have been using these 2 lisp regularly for a while now. i was wondering would it be possible to have some sort of lisp that combines both of their function? 
I do apologize i cannot give credit to the owners of these lisp as i have already forgotten where i got them.

the first lsp is xch, replaces the block and inherits the rotation - however, when the basepoint of the block is not in the center of the block it will mess up the location of the new block - relative to the basepoint of the original block that will be replaced.

second lsp is mchange - where regardless of the basepoint or rotation, the block will be replaced as is, and i have to rotate the block manually.

now ideally what i was looking for is the best of both worlds - if possible a lsp that would replace the block on the same location as mchange.lsp, but inherits the rotation of the block like xch irrelevant of the basepoint.

any help would be much appreciated. 
Back to Top

Related CAD tips:


 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down



This page was generated in 0,320 seconds.