Gargammel Posted January 29, 2013 Posted January 29, 2013 Lets start with the info that im sitting in autocad 2013 using the latest magicad. And what im trying to figure out is if theres a way of making a macro that insterts a block of my chosing (ex. 4000X3000 mm) on to a specific part. Funtion wise as a marker and helper. and keep in mind sure i could inster one then osnap mysself to the death. since in might have to place some around 100 - 600 on each drawing. and im not just working on one a day. So if anyone has an idea it would be greatly appreciated!! Quote
ReMark Posted January 29, 2013 Posted January 29, 2013 The blocks you are inserting can be different. OK. But what about the part you are going to be attaching them to? Will it always be the same? Will the insertion point always be the same? Quote
Gargammel Posted January 29, 2013 Author Posted January 29, 2013 Yes, So answer to your question they will be the same. Atmost around 3 different part types. though they will be a part from the magicad extension and the magicad library. any idea? Quote
ReMark Posted January 29, 2013 Posted January 29, 2013 No idea. Just trying to get some clarification that's all. Quote
Gargammel Posted January 29, 2013 Author Posted January 29, 2013 Okey, thanks anyway! It´s bugging me that i cant figure out how to. Since a solution would save me a great deal of time. Quote
ReMark Posted January 29, 2013 Posted January 29, 2013 I'm sure one of the lisp gurus can at least point you in the right direction. I would not give up all hope quite so soon. Be patient. Quote
SLW210 Posted January 29, 2013 Posted January 29, 2013 Might help if you post more information about the MagiCAD blocks and Library. Quote
Gargammel Posted January 30, 2013 Author Posted January 30, 2013 To start a magicad project Autocad you first need to create a Project file thorugh magicad wich then you place a cupple of subfolders up in the hierarki struktur. when that is done you get a "project.EPJ, Autocad linetype definition file, Project.QPD) The blocks I just want to be able to make some easy 300X4000mm rectangles or circles. that then is placed on the MagiCAD part, wich in this case is a sprinkler part. The parts location through quick select is Object type: MagiCAD Sprinkler, Properties: System UserCode or just UserCode. If you need more info about the library then please be more precise so i know. (fairly new with macro making and all that comes along) Quote
JGA Posted February 13, 2013 Posted February 13, 2013 Can you not redefine the "part" from another drawing that already has the 4000x3000 block already attached to it? Quote
Gargammel Posted February 14, 2013 Author Posted February 14, 2013 Redefining it might be hard. Since the part is actually taken from a online storage then saved in the project file. Though we ha a reference project file wich we use that we can change te look on the parts in a 2d and line view setup. And to make a different layout for the part will give me far more work of switching back and forth and changin part. Then if theres a possible way of making a block snap on to all "parts". theres a chance to keep them on a seperate layer for the usage of freeze/hide. But if you meant or know a way then please explain more. thanks JGA! Quote
BIGAL Posted February 15, 2013 Posted February 15, 2013 You need to post a dwg with a "part" so we can look at it, if its like a extended object then you should be able to find them all in one go, as you want to add something not change the part it should be achieavable. Quote
klalle Posted January 20, 2014 Posted January 20, 2014 See this post, it will probably help you allot! Quote
Gargammel Posted January 21, 2014 Author Posted January 21, 2014 See this post, it will probably help you allot! Looks like i might find what i need in that one. Thanks! Quote
Recommended Posts
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.