Hyun,
You are exactly right. AcadE is choking when it tries to display this unexpectedly long string of data (324 characters) in the "Pins used so far" portion of the dialog. I experimented and found that the cut-off point (where it appears to work cleanly) is 255 characters or less. For this display we really don't need to output all 324 char (or 255 for that matter) because the dialog window is only wide enough to show the first 40 or so characters. So, I believe truncating displayed data to 255 max char (in order to be compatible with AutoCAD's dcl dialogs) will be a good fix as it will not affect the operation of the command, just the display of the unseen part of the data.
But, you need a work-around now (for the current AcadE 2004 release). The only thing that I can come up with (other than you shortening your pin list - which is probably not an option) is to fake out AcadE so that it cannot write this extra long data out to a window in the dcl dialog. To do this, I believe that we can edit the dcl file, find this "Pins used so far" dialog window, and change it so that AcadE cannot find it. This should let you then use your really long pin lists and, at the same time, avoid choking AcadE 2004. The downside is that the "Pins used so far" part of the "List" dialog will be blanked out.
Here's how to implement the work-around:
1. Find file c:\program files\Autodesk\acade 2004\support\wds1ed.dcl and make a backup copy (just in case)
2. Open c:\program files\Autodesk\acade 2004\support\wds1ed.dcl with an ASCII text editor
3. Search for this substring "contact_pin_list : dialog" - it should be about 3/5ths of the way down the file
4. Now scroll down another 60 lines or so. You should see the code shown below.
5. Go down to where it says ":list_box{key="lst";tabs=".... and change "lst" to "xxx"
6. Save the file.
That should do it. AcadE 2004 will not be able to write the unstable data out to the dcl dialog window because it won't be able to find the window (because it is now renamed).
Let me know if this doesn't work for you.
thanks!
Nate.
:column
{
fixed_height=true;
:paragraph
{
:text_part{
label= /*dcl_s1ed_107*/"Pins used so far";
}
}
:row
{
fixed_width=true;
:text{
label= /*dcl_s1ed_108*/" ";
width=1;}
:text{
label= /*dcl_s1ed_109*/"SH,REF";
width=6;}
:text{
label= /*dcl_s1ed_110*/"TYPE";
width=7;}
:text{
label= /*dcl_s1ed_111*/"PINS";
width=24;}
:text{
label= /*dcl_s1ed_112*/"WIRE NUMBERS";
}
}
:list_box{key="lst";tabs="2 12 21 26 33 46"; width=80; fixed_width=true; height=14;
tab_truncate=true;}
"hkim" wrote in message news:11556652.1076103720834.JavaMail.jive@jiveforum2.autodesk.com...
> Acade will crash out of the insert/edit child dialog box when the "list" button (to see used/unused contacts) is used on a child symbol associated with a parent that has a very long pinlist and has a sibling inserted that has a very large number of pins.
>
> The error message that Acade shows is:
> Select component/cable/location box to EDIT:; error: Exception occurred:
> 0xC0000005 (Access Violation)
> ; warning: unwind skipped on exception
> ; error: Exception occurred: 0xC0000005 (Access Violation)
>
> I have attached a sample drawing containing a parent with a very long pin list and some associated children. To replicate that error, edit one of the child contacts. Then click on the "LIST" button next to the pin numbers. Acade should kick you out of the command and give the above error messages.
>
> Is there anyway around this?
>
> Regards,
> Hyun Kim
> Powell Electrical Mfg. Co.