subfiles in MPD files


Re: subfiles in MPD files
#30
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.)
Reply
« Next Oldest | Next Newest »



Messages In This Thread
subfiles in MPD files - by Michael Heidemann - 2012-11-10, 18:40
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:12
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:42
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:40
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 19:54
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 20:24
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:35
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 21:08
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:14
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:31
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 19:10
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 19:21
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 21:21
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:22
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 20:29
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:02
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:25
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 20:55
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:04
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 21:19
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 21:56
Re: subfiles in MPD files - by Roland Melkert - 2012-11-10, 22:16
Re: subfiles in MPD files - by Alex Taylor - 2012-11-10, 23:07
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:17
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:49
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 19:07
Re: subfiles in MPD files - by Roland Melkert - 2012-11-11, 18:21
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 18:34
Re: subfiles in MPD files - by Alex Taylor - 2012-11-11, 21:22

Forum Jump:


Users browsing this thread: 1 Guest(s)