reccakeys Posted July 23, 2010 Share Posted July 23, 2010 I like your work tiger... How I wish I could do the same thing as you do. Maybe someday HUH.... Hope So.... ... Quote Link to comment Share on other sites More sharing options...
dbroada Posted July 23, 2010 Share Posted July 23, 2010 module1.dwg try this, and if it works I'll tell you what I've done (or look for yourself) Quote Link to comment Share on other sites More sharing options...
10west Posted July 26, 2010 Share Posted July 26, 2010 1. Make it so when it is inserted, it dynamically changes your time controlled elements within the master block each time, on insert it sets the definition and the reference, the master pattern, and it's object placement in the drawing. 2. It then explodes the block, 3. redefines the returned entities, into a new block with the same master block definition name prefix, insertion point and entities. 4. It then appends it's master block name like MasterClock, MasterClock_record1, MasterClock_record2. The routine checks the block collection for the needed next sequence, or... 5. It appends it with a unique combination or key set by the system, like a random hash, system time date crypt or whatever will make it unrepeatable, maybe even a user input suffix. Your clock won't run the risk of a block def being globally redefined, you can be backward compatible to older versions, and you can have a trackable key, besides the frozen time... Quote Link to comment Share on other sites More sharing options...
10west Posted July 26, 2010 Share Posted July 26, 2010 Another alternative is to consider user defined groups, which are really like drawing held persistant selection sets, which can be manipulated in a number of ways. Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 Dave, your module1.dwg works! It gets inserted fine, and the arrows get drawn to the right position. Do you mind explaining to me what you did? (sorry for the long delay in response, I've been swamped lately) Thanks, tiger1337 Quote Link to comment Share on other sites More sharing options...
dbroada Posted July 26, 2010 Share Posted July 26, 2010 Dave, your module1.dwg works! It gets inserted fine, and the arrows get drawn to the right position. Do you mind explaining to me what you did? (sorry for the long delay in response, I've been swamped lately) Thanks, tiger1337 it was simply that you had your parameters a long way from the geometry you had drawn. The actions can be put anywhere (I keep them close) but the parametrs have to be part of the geometry that they refer to. Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 So, when I draw parameters: I click on 'Rotation Parameter' then I click on the 'center' of the arrow object. Then I specify a radius by extending it beyond the whole arrow object itself (I tried a ton of different radii when I was working before). Then I specify 0 handles in the properties. After that, I click 'Rotation Action' and click on the word 'Angle1' (the Rotation Parameter). Then I click on the arrow object. After that I push "Enter" to let AutoCAD know I don't want to select any other objects. After that it asks me where to place the action tag thing, I click anywhere I want. I honestly did this like 20 different times, varying how I did things. I could never get it to work properly. Are you saving these in a different way I am? Thanks, tiger1337 Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 (edited) Actually, I think there has to be a different way you are saving these. When I go to open my drawing block, on the AutoCAD open file dialog box, I don't see a preview of the drawing. When I select your drawing, I do. Also, I noticed that when I used my drawing block for the program, one copy of the block had to be on the drawing... otherwise the program crashed on the line where it tried to open the block. With your blocks on the other hand, I don't have this problem. ~tiger1337 Edited July 26, 2010 by tiger1337 spelling Quote Link to comment Share on other sites More sharing options...
dbroada Posted July 26, 2010 Share Posted July 26, 2010 So, when I draw parameters: I click on 'Rotation Parameter' then I click on the 'center' of the arrow object. Then I specify a radius by extending it beyond the whole arrow object itself (I tried a ton of different radii when I was working before). Then I specify 0 handles in the properties. After that, I click 'Rotation Action' and click on the word 'Angle1' (the Rotation Parameter). Then I click on the arrow object. After that I push "Enter" to let AutoCAD know I don't want to select any other objects. After that it asks me where to place the action tag thing, I click anywhere I want. I honestly did this like 20 different times, varying how I did things. I could never get it to work properly. Are you saving these in a different way I am? Thanks, tiger1337 I think that pretty much sums up what I did. The actual radius of the parameter doesn't appear to mean much either, especially when selecting 0 grips although when I do use grips I like them to be somewhere sensible. I understand your frustration. I am now comfotable with dynamic blocks (although they still bite at times) but I can remember getting started with them!! Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 Ok, I am looking at the original module1.dwg that I posted, and I am trying to edit it to make it work like yours. Looking at them they look identical. I must be missing something. As you can tell, I am better at programming autoCAD than I am actually capable of using autoCAD. haha! Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 What I did was create a new drawing. In another window, I had my old block open. I copied the contents of the old drawing, and pasted them (on the origin) on the new drawing. I then used the WBLOCK command to make a block of that whole new drawing, and saved them as another new drawing. Then I closed everything, and then opened the newblock drawing I created. Opened the block editor (selecting ). Then I added the parameters and actions like I always did. And it worked!!! I'm guessing something with my old block was just corrupt. Dave thank you so much, I really appreciate all you expertise. ~tiger1337 Quote Link to comment Share on other sites More sharing options...
tiger1337 Posted July 26, 2010 Author Share Posted July 26, 2010 @ reccakeys : Programming is frustratingly difficult to learn, and always will be (atleast for me) If you want to learn, just post your objectives on a new thread. People will surely help you. Quote Link to comment Share on other sites More sharing options...
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.