Scaling and Configurations

Discussion in 'SolidWorks' started by Seth Renigar, Aug 25, 2004.

  1. Seth Renigar

    Seth Renigar Guest

    I would like to create configurations for different sizes of a part. The
    sizes are always uniform, therefore a simple scale feature would do the
    trick. Does anyone know if there is a way to have different scaling factors
    in a scale feature from configuration to configuration?
     
    Seth Renigar, Aug 25, 2004
    #1
  2. Seth Renigar

    Seth Renigar Guest

    Wayne,

    Good idea.... if it were a geometrically defined part.

    Basically the part is nothing more than a model representation of a
    customers logo. I took a JPEG of their logo a traced around it with a lot
    of splines to create my extrudes. None of the sketches are fully defined
    (or even partially for that matter). We will be using this logo on a
    multitude of projects for this customer using different sizes here and
    there. I wanted to simply have a config for each of the sizes.

    Looks like zygzag's solution will work. I had already thought of this, but
    I was hoping there was an easier way...

    Thanks,
     
    Seth Renigar, Aug 25, 2004
    #2
  3. If you have to add scales many times I would suggest creating a simple
    macro. Record the adding of a scale feature, you will get something like
    this

    Dim swApp As Object
    Dim Part As Object
    Dim boolstatus As Boolean
    Dim longstatus As Long, longwarnings As Long
    Dim FeatureData As Object
    Dim Feature As Object
    Dim Component As Object
    Sub main()

    Set swApp = Application.SldWorks

    Set Part = swApp.ActiveDoc

    'the first .5 is the X second Y third Z
    Set Feature = Part.FeatureManager.InsertScale(0, True, 0.5, 0.5, 0.5)
    '"50%" would be the new features name.
    Part.SelectedFeatureProperties 0, 0, 0, 0, 0, 0, 0, 1, 0, "50%"
    Part.ClearSelection2 True
    Part.ClearSelection2 True

    End Sub

    This will add a centroid scale feature that would scale to 50% and be named
    50% With a little more trouble you could add a user form, and a little bit
    more the ability for it to create a new config.

    To keep it simple
    1)Create each new config while the default (assuming this is the unscaled
    config) is active.
    2)do not use derived configs(this way the new feature will be suppressed in
    all other configs)
     
    Corey Scheich, Aug 25, 2004
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.