1
.NET / Re: Linetype scaling differs for unknown reason
« Last post by damien_conroy on May 12, 2024, 03:00:28 PM »Erasing the linetypes caused problems with the layers defaulting back to linetype continuous, so I just used the editor.command() for reloading linetypes.
adapted from https://adndevblog.typepad.com/autocad/2012/03/how-to-reload-the-line-type-in-autocad-using-autocadnet-api.html
adapted from https://adndevblog.typepad.com/autocad/2012/03/how-to-reload-the-line-type-in-autocad-using-autocadnet-api.html
Code: [Select]
if (bReload)
{
//dataArry[0] = "-linetype Load Dashed\nacad.lin\nYes\n ";
ed.Command("_.linetype", "Load", "Dashed", "acad.lin", "Yes", "");
}
else
{
//dataArry[0] = "-linetype Load Dashed\nacad.lin\n ";
ed.Command("_.linetype", "_Load", "_Dashed", "_acad.lin", "");
}