Want to AddBaseView with a scale of 1:10 (not 1/10)

Want to AddBaseView with a scale of 1:10 (not 1/10)

machiel.veldkamp
Collaborator Collaborator
421 Views
1 Reply
Message 1 of 2

Want to AddBaseView with a scale of 1:10 (not 1/10)

machiel.veldkamp
Collaborator
Collaborator

 

 

I'm using some code to make drawings for parts and I'm having some trouble selecting the correct scale.

 

DrawingViews.AddBaseView(

Model As Document,

Position As Point2d,

Scale As Double,

ViewOrientation As ViewOrientationTypeEnum,

ViewStyle As DrawingViewStyleEnum,

[ModelViewName] As String,

[ArbitraryCamera] As Variant,

[AdditionalOptions] As Variant )

As DrawingView

 

Scale is a Double here and that's fine and all. If I select a scale of 0.1, 1 or 2 it gives me a '/' as a delimiter for the scale where I want to use ':' as a delimiter.

 

Want: SCALE = "1:10"

 

Anyone know how to do that?

 

Thanks for the help 🙂

 

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

___________________________
0 Likes
Accepted solutions (1)
422 Views
1 Reply
Reply (1)
Message 2 of 2

machiel.veldkamp
Collaborator
Collaborator
Accepted solution

Got it!

 

oBaseView = oSheet.DrawingViews.AddBaseView(oModel, oCenterPoint, oScale, ViewOrientationTypeEnum.kDefaultViewOrientation, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle, "FlatPattern", , oBaseViewOptions)
oBaseView.ScaleString = "1:10"

Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

___________________________
0 Likes