cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Element Split not working when expected...

john.fazzie
1-Newbie

Element Split not working when expected...

I was wondering if anyone has run into issues where the Element Split
functionality will sometimes not work as expected. This is happening to
us and I'm sorry that I have to be vague about when it happens but the
only real factor that I have noticed when this doesn't work is when the
aliases for elements that normally split are switched to languages
foreign to English, specifically if the characters in those aliases are
ones such as ë or ì or something like that. Now that doesn't really make
much sense to me... perhaps someone has read something about this
somewhere b/c it seems quite obscure but I thought I'd ping this list to
see if someone knew anything about this.

-John
2 REPLIES 2

Hi, John,

Our circumstances are different yet I too had trouble with Epic's split command. As a result, I implemented my own. Please pardon the elevated-at-times tone of the comments. Also, this goes back to 4.4K. I'm not up to par on any split command changes since that version. Hopefully this will help if a reason cannot be determined for your case.

-Brent


package uOid;

...

# Boolean to workaround Epic split command bug -- hangs during post import hook.
# ATI30960. As of 20041213, Arbortext suggested using " vs.
# " within XML import templates. This worked for 1 file but not
# another. Leaving " in templates but turning workaround on.
global WORKAROUND_ATI30960 = 1;

...

#
# This function's only reason for existence is to provide an alternative to
# Epic's split command -- WHICH HANGS EPIC WHEN EXECUTED WITHIN THE POST
# IMPORT HOOK! The preceding is true at least with Epic 4.4K (ATI30960). This
# function isolates the workaround. The function behaves similar to Epic's
# split command in the respect the caret must be in the correct spot in the
# current doc. Compare $main::status to know if a call to this function was
# successful.
#
# THIS WORKAROUND HAS A DRAWBACK: The oids of elements that end up being cut
# and pasted elsewhere are no longer valid.
#
function split( workaroundATI30960 = uOid::WORKAROUND_ATI30960 )
{
if ( workaroundATI30960 )
{
local name = oid_name( oid_caret() );

# Cut residual element content into paste buffer
clear_mark all;
mark -noinvert begin;
goto_oid( oid_caret(), -1 );
mark end;
delete_mark bufSplitCmd;
if ( main::status != 0 ) { return };

# Move past end tag
forward_char( 1 );
if ( main::status != 0 ) { return };

# Create new element
insert_tag $name;
if ( main::status != 0 ) { return };

# Paste content
paste bufSplitCmd;
if ( main::status != 0 ) { return };

# Place caret at beginning of new tag
goto_oid( oid_caret() );
}
else
{
split;
}
}



Hi

Is it possible to add a pdf file directly in Epic. I'm using Epic
Editor 4.4k with Print Composer in Windows XP environment.

Thanks for your help.


Sylvain Castonguay
BRP
Announcements