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();
}
}
}
}
Solved! Go to Solution.
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();
}
}
}
}
Solved! Go to Solution.
Solved by ChristianBlei. Go to 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,
Hi,
if the AddOns loading mechanism is working you do not need a netload.
what if you use the ADVS loading command ASTORLOADASNETPLUGIN?
HTH,
Thanks, @ChristianBlei !
It´s works! I´ve used the command ASTORLOADASNETPLUGIN and it´s work.
Thank you so much!
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.