EBDN - Community - Question & Answers

  Tuesday, 16 January 2018
  6 Replies
  1.9K Visits
0
Votes
Undo
We are trying the following method to create drawings and the Problem statement is mentioned as below.


Problem Statement:
We are having different drawing typicals, where each typical drawings are in individual drawing sheets (Not as a shape or circuit component).

Our idea is from the typical drawing sheet ( Drawing Sheet No1. & 2), select the drawing area (By start and end coordinate or some other way) and place it in a drawing sheet (Target Sheet) as shown below.

SheetMerge.png

Presently, we struck in selecting the drawings from a drawing sheet (Drawing Sheet No1 &2), programmatically.

The objective is to reduce the number of Sheets and to merge some of them in new drawing while copying the single line drawings from typical project. So my approach is to find the location of device in existing sheets and then take the device and put it on the New sheet with added new location for those device. For example Typical project has

Device1 on Sheet1 has Location: 20,20
Device2 on Sheet2 has location 20,20

So my Newly created project will be a Merge of the two devices, with location 20.20 and (20 + 20),20

I tried with sample code as below,

IList<ExecuteSheetOperationRecordData> op = new List<ExecuteSheetOperationRecordData>();op.Add(new ExecuteSheetOperationRecordData() { Qualifier = (int)ExecuteSheetOperationModes.OpExecSheetGetSymbol, Value = 0 });
op.Add(new ExecuteSheetOperationRecordData() { Qualifier = (int)ExecuteSheetOperationModes.ArgExecSheetRef2Obj, Value = childObject });
op.Add(new ExecuteSheetOperationRecordData() { Qualifier = (int)ExecuteSheetOperationModes.ArgExecSheetFctSel, Value = 0 });
op.Add(new ExecuteSheetOperationRecordData() { Qualifier = (int)ExecuteSheetOperationModes.ArgExecSheetRetVal, Value = null });

sheet.ExecuteSheetOperation(ref op); //To get some information from Sheet like location....

Exception
Error Id: StringID_2447
((System.Exception)($exception)).TargetSite' threw an exception of type 'System.IO.FileNotFoundException'

{"Could not load file or assembly 'Aucotec.EngineeringBase.Client.RuntimeHostAdapter, Version=21.0.0.0, Culture=neutral, PublicKeyToken=6d4e536fc230a61a' or one of its dependencies. The system cannot find the file specified.":"Aucotec.EngineeringBase.Client.RuntimeHostAdapter, Version=21.0.0.0, Culture=neutral, PublicKeyToken=6d4e536fc230a61a"}

It could be helpful to us, if you can able to allocate some time for a short discussion on the same and check the possibilities.

Kindly let me know your convenience time for these discussion.

Thanks,
Neeraj

EMail Id:
This email address is being protected from spambots. You need JavaScript enabled to view it., This email address is being protected from spambots. You need JavaScript enabled to view it.,This email address is being protected from spambots. You need JavaScript enabled to view it.