Jump to content

Scaling Dynamic Blocks Question


Recommended Posts

Posted

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

Posted

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

Posted

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

Posted

Could be your Dynamic Block is Annotative? :unsure:

 

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

Posted

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

  • 1 year later...
Posted

Hi Matt, has anyone resolve this problem? I'm also having the same issue with the dynamic block losing its properties/features.

 

Regards

Peter

Posted

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.

Posted
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

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