Ad

Tuesday, March 26, 2024

AutoCAD 2025 - .NET 8 Build Folder

 AutoCAD 2025 was released, at least I think it was. I'm too lazy to find out. 

AutoCAD 2025 has migrated from .NET Framework 4.7.2 to .NET 8 (previously named .NET Core). 

With this change you might need to set the BaseIntermediateOutputPath in order to use a common code base between AutoCAD years. I've found that you can create a "Directory.Build.props" file and put it in the root folder of your solution. Then within the file add: 

<Project>
 <PropertyGroup>
   <Deterministic>true</Deterministic>
   <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">obj\$(MSBuildProjectFile)\</BaseIntermediateOutputPath>
 </PropertyGroup>
</Project>

This will move the project build from the "obj" folder to a "obj/ProjectFileName" folder. This will cause the build for each project to go into their own folder and prevent projects from mingling and causing duplicate info that prevents the build from building. 

 Here is the help topic: https://learn.microsoft.com/en-us/visualstudio/msbuild/customize-by-directory?view=vs-2019


The app being built in the above example may be found here: 

https://apps.autodesk.com/CIV3D/en/Detail/Index?id=6447637305413252324

Tuesday, December 20, 2022

Open Databases By Core Console

I've added code to the https://github.com/C3DReminders/DFWBIUG_C3D_Data_Shortcuts_2020 repository to demonstrate how to open drawings without using the UI and extracting information from them using the AutoCAD core console. This method allows for the opening of drawings via multithreading. This sample code creates a simple text file, but the concepts could be expanded. 

The name of the command is "OpenDbsByCoreConsole" and it is located in the OpenDatabasesCoreConsoleCommand class. 

Note that some of the code was retrieved from the "Autodesk Batch Save Utility (Standalone)" by looking at the decompiled dll code. 

Monday, December 19, 2022

Open Databases By Side Loading

I've added code to the https://github.com/C3DReminders/DFWBIUG_C3D_Data_Shortcuts_2020 repository to demonstrate how to open drawings without using the UI and extracting information from them. This sample code creates a simple text file, but the concepts could be expanded. 

The name of the command is "OpenDbsBySideLoading" and it is located in the OpenDatabasesCommand class. 


Sunday, December 18, 2022

Corridor Surface Point Codes

 I've added some code to the https://github.com/C3DReminders/DFWBIUG_C3D_Data_Shortcuts_2020 repository that demonstrates how to get which point codes are being used by a corridor surface. 

This is useful when you want to assign property set information to a corridor feature line when it is extracted from a corridor for use in another program. 

In the code sample, the name of the command is "CorrSurfPointCodes" and it is in the "CorridorFeatureLinesCommand" class. 

Friday, November 25, 2022

Property Set Units

It appears one has to add a "Property Data Format" to the drawing in Style Manager. Once you do that, use the Format column on the Property Set Definition tab to select the desired format and then the unit drop-down will then become available with the set units available for the unit type specified in the Property Data Formats. I changed Standard to Area and then the area options was then available.




LinkWithin

Blog Widget by LinkWithin

Ad