harrison-matt Posted December 8, 2010 Posted December 8, 2010 All, I have recently come across an issue with inserting dynamic blocks using: (vla-InsertBlock space (vlax-3D-point pt) blockName scale scale 1. ang)) Where the scale is greater than 1. I have noticed however that by inserting at 1 scale then by using the scale command scale the block to the factor that is desirable works fine. Also after insertion at 1 scale i have changed the scale manually using the properties dialog resulting in the loss of the dynamic features and properties. Any information would be helpful. Matt Quote
Lee Mac Posted December 8, 2010 Posted December 8, 2010 Haven't tried it, but maybe insert at 1:1:1, then use the effectivescalefactor properties: (setq b (vla-InsertBlock space (vlax-3D-point pt) blockName 1. 1. 1. ang)) (mapcar '(lambda ( x ) (vlax-put-property b x scale)) '(XEffectiveScaleFactor YEffectiveScaleFactor)) Quote
harrison-matt Posted December 8, 2010 Author Posted December 8, 2010 Lee, Nope, Didn't work. Thanks for the Mapcar Lambda example, I do appreciated that! I think it is because each scale is changed at different intervals resulting in the loss of the dynamic properties. I may be wrong though. Thanks, Matt Quote
pBe Posted December 9, 2010 Posted December 9, 2010 Could be your Dynamic Block is Annotative? No matter what value you have here (vla-InsertBlock space (vlax-3D-point pt) blockName [color=blue]scale scale[/color] 1. ang) the block would only follow the currrent annoscale (CANNOSCALE) value when inserted Quote
ccowgill Posted December 9, 2010 Posted December 9, 2010 It could be that it is using a real number as opposed to an integer or fraction. I have found that in the past, even if I specify scale .5 for the scales, it will loose its dynamicness. however if I enter scale 1/2 it works fine. I dont know the reason, but that could possibly be it Quote
Mave007 Posted March 29, 2012 Posted March 29, 2012 Hi Matt, has anyone resolve this problem? I'm also having the same issue with the dynamic block losing its properties/features. Regards Peter Quote
dbroada Posted March 29, 2012 Posted March 29, 2012 dynamic blocks MUST be inserted with all three scales equal - to every decimal place. There was (maybe still is) a bug in AutoCAD where scaling using the SCALE command would give the Z scale a difference in about the 6th decimal place and the dynamic properties would be lost. I had a routine that gave a variable the calculated scale and then used that to set the X, Y & Z scales. Quote
pBe Posted March 29, 2012 Posted March 29, 2012 Hi Matt, has anyone resolve this problem? I'm also having the same issue with the dynamic block losing its properties/features. Regards Peter I never did understand whats the deal with the OP's Dynamic Block issue. Maybe because we used Annotative DBs and never had that problem. I guess you'll have better luck using X-Y parameter 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.