Skip to main content
1-Visitor
August 8, 2013
Solved

how can i delete all the "P"sign at once?

  • August 8, 2013
  • 1 reply
  • 1535 views

I often copy some table from the "excel" of the office software to the Arbotext, but each content has the "p" sign (see the picture)

how can i delete all the "P" sign at once? not hide them

please help me thanks very much!!!!!!!!

    Best answer by bfriesen

    There is a icon in the tool bar that has a markup tag with a red X through it. If you click into the P element and click the button it will go away. If you select muliple cells it will only delete the markup in the last one selected. I made the same request to ptc support and was told the program is functioning correctly. I would expect that it should remove all the elements from the cells selected.

    Here is the work around that I recieved posting this same question in the forums.

    Create an acl script. Open a text editor copy the info below and paste it into the text editor save as remove_p.acl.

    function remove_p_tags()

    {

    local oid = oid_first_tag()

    local cnt

    local i = 1

    cnt = oid_find_children(oid, $arr, "p")

    for ($i=1; $i<=$cnt; $i+=1)

    {

    if (oid_name(oid_parent($arr[$i])) == "entry")

    {

    goto_oid($arr[$i],-1)

    dt

    }

    }

    }

    map F10 remove_p_tags();

    Save this file in the init folder, restart your editor session, Click into your table and press F10, it should invoke the script to remove all the P elements.

    Hope this helps

    Bryon

    Ps if you are using Excel, you can choose edit paste as excel, it then removes the P elements from the table.

    1 reply

    bfriesen18-OpalAnswer
    18-Opal
    August 8, 2013

    There is a icon in the tool bar that has a markup tag with a red X through it. If you click into the P element and click the button it will go away. If you select muliple cells it will only delete the markup in the last one selected. I made the same request to ptc support and was told the program is functioning correctly. I would expect that it should remove all the elements from the cells selected.

    Here is the work around that I recieved posting this same question in the forums.

    Create an acl script. Open a text editor copy the info below and paste it into the text editor save as remove_p.acl.

    function remove_p_tags()

    {

    local oid = oid_first_tag()

    local cnt

    local i = 1

    cnt = oid_find_children(oid, $arr, "p")

    for ($i=1; $i<=$cnt; $i+=1)

    {

    if (oid_name(oid_parent($arr[$i])) == "entry")

    {

    goto_oid($arr[$i],-1)

    dt

    }

    }

    }

    map F10 remove_p_tags();

    Save this file in the init folder, restart your editor session, Click into your table and press F10, it should invoke the script to remove all the P elements.

    Hope this helps

    Bryon

    Ps if you are using Excel, you can choose edit paste as excel, it then removes the P elements from the table.

    1-Visitor
    August 12, 2013

    it's very useful ,thank you!!!