70001954 Support InsUnits for each vdBlock separately

Article 70001954
Type Wish
Product Engine
Date Added 4/9/2021 12:00:00 AM
Fixed 9.9002.0.1 (4/13/2021 12:00:00 AM)
Submitted by Brendan Fry

Summary

Support InsUnits for each vdBlock separately additionally to vdDocument.InsUnits property

Solution

A new property InsUnits of vdBlock was added in version 9002.0.1
Get/Set a value of vdDocument.InsUnitsEnum type used for scaling when inserting this block to a drawing .
The vdDocument.CommandAction.CmdInsert use this value to multiply the passed Scale
The vdDocument.CommandAction.CmdWriteBlock also set this value to the exported drawing
If this InsUnits or Inserted document InsUnits value is vdDocument.InsUnitsEnum.Unspecified. no extra scale on inserted blocks is applied
Default value is vdDocument.InsUnitsEnum.Unspecified
This value is supported also for Dwg and Dxf file dormats
Also a new readonly property InsUnitScale of vdBlock was added

Returns the scale factor between drawing vdDocument.InsUnits and this block object InsUnits
Used by vdDocument.CommandAction.CmdInsert to multiply the passed block scale with this value

Send comments on this topic.