| November 10, 2012 03:07PM | Registered: 11 months ago Posts: 50 |
Right, but your solution is for a problem that does not currently exist.
I can't see a situation arising where importing an unofficial part with all its dependencies could in fact cause this. By definition there can only be a single entity in the parts-library with a given TargetName. The only times that you would have two files with the same filename in your library are if one file is in 'parts' and the other in 'parts\s' (or similar), in which case they have unique TargetNames; or if one file was in 'parts' and the other in 'models' (or 'unofficial\parts' if you're into that), in which case the one in 'models' takes precedence when doing a lookup and the one in 'parts' is simply ignored (or vice-versa if your search-path is configured the other way around).
The closest I can see to your example would be if you imported two parts which both had a dependency on the same subpart (or primitive); in that case it would be redundant to import the subpart twice and it's the application's problem to ensure that this does not happen. In fact, your solution would not only allow duplicate imports, it would actually make them more likely to happen.
I've just checked, and MLCad actually has a nasty bug here: it actually loaded the above code! This absolutely should not have happened, since it merrily created two pages with the name 'a.dat' - something that it will not allow you to do if you try and create or rename a page. I'm mildly surprised that it didn't crash on loading, in fact. (There's a second bug, too: it seems to think that TargetNames are case-sensitive - 'A.dat' and 'a.dat' are regarded as being different, which is wrong.)
| Subject | Author | Views | Posted |
|---|
subfiles in MPD files
| Michael Heidemann | 286 | November 10, 2012 10:40AM |
Re: subfiles in MPD files
| Alex Taylor | 85 | November 10, 2012 11:12AM |
Re: subfiles in MPD files
| Michael Heidemann | 67 | November 10, 2012 11:34AM |
Re: subfiles in MPD files
| Michael Heidemann | 78 | November 10, 2012 11:39AM |
Re: subfiles in MPD files
| Alex Taylor | 79 | November 10, 2012 11:42AM |
Re: subfiles in MPD files
| Michael Heidemann | 64 | November 10, 2012 12:07PM |
Re: subfiles in MPD files
| Alex Taylor | 71 | November 10, 2012 11:40AM |
Re: subfiles in MPD files
| Michael Heidemann | 72 | November 10, 2012 11:47AM |
Re: subfiles in MPD files
| Alex Taylor | 66 | November 10, 2012 11:54AM |
Re: subfiles in MPD files
| Michael Heidemann | 67 | November 10, 2012 12:13PM |
Re: subfiles in MPD files
| Alex Taylor | 57 | November 10, 2012 12:24PM |
Re: subfiles in MPD files
| Michael Heidemann | 71 | November 10, 2012 12:33PM |
Re: subfiles in MPD files
| Roland Melkert | 55 | November 10, 2012 12:35PM |
Re: subfiles in MPD files
| Michael Heidemann | 69 | November 10, 2012 12:41PM |
Re: subfiles in MPD files
| Michael Heidemann | 74 | November 10, 2012 12:44PM |
Re: subfiles in MPD files
| Roland Melkert | 93 | November 10, 2012 01:08PM |
Re: subfiles in MPD files
| Michael Heidemann | 80 | November 10, 2012 03:27PM |
Re: subfiles in MPD files
| Roland Melkert | 67 | November 11, 2012 10:14AM |
Re: subfiles in MPD files
| Alex Taylor | 76 | November 11, 2012 10:31AM |
Re: subfiles in MPD files
| Roland Melkert | 93 | November 11, 2012 11:10AM |
Re: subfiles in MPD files
| Alex Taylor | 95 | November 11, 2012 11:21AM |
Re: subfiles in MPD files
| Michael Heidemann | 87 | November 11, 2012 01:04PM |
Re: subfiles in MPD files
| Roland Melkert | 82 | November 11, 2012 01:21PM |
Re: subfiles in MPD files
| Roland Melkert | 64 | November 10, 2012 12:22PM |
Re: subfiles in MPD files
| Alex Taylor | 75 | November 10, 2012 12:29PM |
Re: subfiles in MPD files
| Michael Heidemann | 76 | November 10, 2012 12:37PM |
Re: subfiles in MPD files
| Alex Taylor | 70 | November 10, 2012 01:02PM |
Re: subfiles in MPD files
| Michael Heidemann | 91 | November 10, 2012 02:59PM |
Re: subfiles in MPD files
| Roland Melkert | 75 | November 10, 2012 12:25PM |
Re: subfiles in MPD files
| Michael Heidemann | 99 | November 10, 2012 12:45PM |
Re: subfiles in MPD files
| Roland Melkert | 89 | November 10, 2012 12:55PM |
Re: subfiles in MPD files
| Alex Taylor | 80 | November 10, 2012 01:04PM |
Re: subfiles in MPD files
| Roland Melkert | 93 | November 10, 2012 01:19PM |
Re: subfiles in MPD files
| Alex Taylor | 92 | November 10, 2012 01:56PM |
Re: subfiles in MPD files
| Roland Melkert | 84 | November 10, 2012 02:16PM |
Re: subfiles in MPD files
| Alex Taylor | 97 | November 10, 2012 03:07PM |
Re: subfiles in MPD files
| Michael Heidemann | 84 | November 10, 2012 03:24PM |
Re: subfiles in MPD files
| Roland Melkert | 58 | November 11, 2012 10:17AM |
Re: subfiles in MPD files
| Alex Taylor | 94 | November 11, 2012 10:49AM |
Re: subfiles in MPD files
| Roland Melkert | 80 | November 11, 2012 11:07AM |
Re: subfiles in MPD files
| Michael Heidemann | 96 | November 10, 2012 02:55PM |
Re: subfiles in MPD files
| Roland Melkert | 69 | November 11, 2012 10:21AM |
Re: subfiles in MPD files
| Michael Heidemann | 86 | November 11, 2012 01:19PM |
Re: subfiles in MPD files
| Alex Taylor | 107 | November 11, 2012 10:34AM |
Re: subfiles in MPD files
| Michael Heidemann | 88 | November 11, 2012 01:15PM |
Re: subfiles in MPD files
| Alex Taylor | 105 | November 11, 2012 01:22PM |
Re: subfiles in MPD files
| Michael Heidemann | 110 | November 12, 2012 11:17AM |
 |  |  |  |