kicad-developers team mailing list archive
Mailing list archive
Re: Issue with 'multiplicating' subpart id
On 3/25/2013 5:16 AM, Lorenzo Marcantonio wrote:
> On Mon, Mar 25, 2013 at 10:02:54AM +0100, jp charras wrote:
>> Perhaps 2 methods are needed:
>> SCH_FIELD::GetTextBase (when editing reference, without part unit letter),
>> or something like.
> Whoops sent too early...
> I was saying... why don't we use the SCH_COMPONENT::GetRef (if
> I understood the code it even walks paths for complex hierarchies)
> instead of getting through GetField(REFERENCE).GetText() when we want to
> use the 'full' reference?
> It would remove the special case from GetText (since in fact the
> subpart id is not part of the reference but of the component).
I must have broke this when I encapsulated EDA_TEXT. Hopefully, I'll
get a chance to look at it some time today. You are correct. This code
is tricky because you have to create the reference field text based on
the the hierarchy sheet path.