Advance Steel Forum
Welcome to Autodesk’s Advance Steel Forums. Share your knowledge, ask questions, and explore popular Advance Steel topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Problems with "Walkthrough: Creating Model Elements"

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
tiago.pereiraGB2J9
235 Views, 2 Replies

Problems with "Walkthrough: Creating Model Elements"

tiago.pereiraGB2J9
Enthusiast
Enthusiast

Hi everyone,

 

I´m a new user of C# and Advance Stell and I was trying to run the "Walkthrough: Creating Model Elements", but I found some errors.

 

When I ran the "NETLOAD" command in Advance Steel, it seem that nothing happens. I dont know if thre´s a problem in my Assembly file or the XML, so, I´m attaching these files here.

 

As it´s a helpful topic launched by Autodesk on April 4, I don´t know what´s wrong with my code. I only made some modifications to create only one beam/column.

Can anyone help me, please?

 

 

using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.DocumentManagement;
using Autodesk.AdvanceSteel.Runtime;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
using Autodesk.AdvanceSteel.Profiles;

namespace HelloWorld2
{
    public class CreateElements
    {
        [CommandMethodAttribute("TEST_GROUP", "CreateElements", "CreateElements",
                                                     CommandFlags.Modal | CommandFlags.UsePickSet | CommandFlags.Redraw)]
        public void Create()
        {
            using (DocumentAccess da = new DocumentAccess(null, false))
            {
                //create column (vertical beam) with a default size
                ProfileName profName = new ProfileName();
                ProfilesManager.GetProfTypeAsDefault("I", out profName);

                Point3d beamStart = Point3d.kOrigin;
                Point3d beamEnd = new Point3d(0, 0, 3500);

                StraightBeam myBeam = new StraightBeam(profName.Name, beamStart, beamEnd, Vector3d.kXAxis);
                myBeam.WriteToDb();
                da.Commit();
            }
        }
    }
}

 

 

0 Likes

Problems with "Walkthrough: Creating Model Elements"

Hi everyone,

 

I´m a new user of C# and Advance Stell and I was trying to run the "Walkthrough: Creating Model Elements", but I found some errors.

 

When I ran the "NETLOAD" command in Advance Steel, it seem that nothing happens. I dont know if thre´s a problem in my Assembly file or the XML, so, I´m attaching these files here.

 

As it´s a helpful topic launched by Autodesk on April 4, I don´t know what´s wrong with my code. I only made some modifications to create only one beam/column.

Can anyone help me, please?

 

 

using Autodesk.AdvanceSteel.CADAccess;
using Autodesk.AdvanceSteel.DocumentManagement;
using Autodesk.AdvanceSteel.Runtime;
using Autodesk.AdvanceSteel.Geometry;
using Autodesk.AdvanceSteel.Modelling;
using Autodesk.AdvanceSteel.Profiles;

namespace HelloWorld2
{
    public class CreateElements
    {
        [CommandMethodAttribute("TEST_GROUP", "CreateElements", "CreateElements",
                                                     CommandFlags.Modal | CommandFlags.UsePickSet | CommandFlags.Redraw)]
        public void Create()
        {
            using (DocumentAccess da = new DocumentAccess(null, false))
            {
                //create column (vertical beam) with a default size
                ProfileName profName = new ProfileName();
                ProfilesManager.GetProfTypeAsDefault("I", out profName);

                Point3d beamStart = Point3d.kOrigin;
                Point3d beamEnd = new Point3d(0, 0, 3500);

                StraightBeam myBeam = new StraightBeam(profName.Name, beamStart, beamEnd, Vector3d.kXAxis);
                myBeam.WriteToDb();
                da.Commit();
            }
        }
    }
}

 

 

2 REPLIES 2
Message 2 of 3

ChristianBlei
Advisor
Advisor
Accepted solution

Hi,

 

if the AddOns loading mechanism is working you do not need a netload.

what if you use the ADVS loading command ASTORLOADASNETPLUGIN?

 

HTH,

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
0 Likes

Hi,

 

if the AddOns loading mechanism is working you do not need a netload.

what if you use the ADVS loading command ASTORLOADASNETPLUGIN?

 

HTH,

Christian Blei
CBT Christian Blei Tools
christianblei.de
youtube.com/channel/UCxjA_NbeScQy9C0Z1xjwXpw
Message 3 of 3

tiago.pereiraGB2J9
Enthusiast
Enthusiast

Thanks, @ChristianBlei !

 

It´s works! I´ve used the command ASTORLOADASNETPLUGIN and it´s work. 

 

 

Thank you so much!

0 Likes

Thanks, @ChristianBlei !

 

It´s works! I´ve used the command ASTORLOADASNETPLUGIN and it´s work. 

 

 

Thank you so much!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report