How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Creator
Creator

How to disable / uncheck "Override Global Value" in "Bend Options" dialog box in C# or VB.NET? (ST6 SYNC)

 

SE_Bend_Options.jpg

 

Thank you

Mijo

5 REPLIES

Re: How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

What environment is this in?

Jason Newell
Applications Architect
www.jasonnewell.net

Re: How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Experimenter
Experimenter

 

Hi Jason,

SheeMetal Sync

How to get there? > Click on inside bend radius -> Properties

 

bend_options.jpg

 

Thank you

Mijo

Re: How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

Well, the UseGlobalBendRadius property looks promising but it raises an exception when you attempt to change it. What's weird is I can see the property change (via Spy for Solid Edge) when I change it with the Solid Edge UI. There might be another property to set or sequence to follow that I'm not seeing yet but thought I'd at least mention what I found.

 

using SolidEdgeCommunity;
using SolidEdgeCommunity.Extensions;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BendRadiusTest
{
    class Program
    {
        [STAThread]
        static void Main(string[] args)
        {
            var application = SolidEdgeUtils.Connect();
            var document = application.GetActiveDocument<SolidEdgePart.SheetMetalDocument>();
            var models = document.Models;
            var model = models.Item(1);
            var features = model.Features;
            var feature = features.Item(2);
            var flange = (SolidEdgePart.Flange)feature;
            flange.UseGlobalBendRadius = false;
        }
    }
}

 

Jason Newell
Applications Architect
www.jasonnewell.net

Re: How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

I just tried this in Traditional mode. What's interesting is you actually get a Bend object and it allows you to alter it's UseGlobalBendRadius property without exception.

 

So hard to know if it's a Synchronous API issue or if we're just missing a step...

Jason Newell
Applications Architect
www.jasonnewell.net

Re: How to disable / uncheck override global value in Bend options dialog box in C# or VB.NET

Experimenter
Experimenter
Hi Jason, I came to the same (crashing) point before I asked question. Discovered GlobalBendRadius property with your SESpy. I am using Sync SM exclusively. I'll test traditional as soon as I get chance. Thank you for looking into it. Mijo