Changed how ROFSTLookup object was obtained based on correct DocVersion
This commit is contained in:
parent
ffd5191ffc
commit
e83c756161
@ -299,9 +299,9 @@ namespace Volian.Print.Library
|
||||
Dictionary<string, Dictionary<string, bool>> ros = new Dictionary<string, Dictionary<string, bool>>();
|
||||
DocVersionInfo dvi = MyItemInfoList[0].MyDocVersion;
|
||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||
rofst.docVer = dvi;
|
||||
//rofst.docVer = dvi;
|
||||
// ROFSTLookup lu = MyItemInfoList[0].MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
||||
ROFSTLookup lu = rofst.ROFSTLookup;
|
||||
ROFSTLookup lu = rofst.GetROFSTLookup(dvi);
|
||||
if (types.ContainsKey(0))
|
||||
{
|
||||
foreach (ProcedureInfo pi in MyItemInfoList)
|
||||
|
@ -1127,7 +1127,7 @@ namespace Volian.Print.Library
|
||||
private static string GetROTitleAndGroup(string roid, ItemInfo itm)
|
||||
{
|
||||
string rotitle = "";
|
||||
ROFSTLookup myrofstlookup = itm.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
||||
ROFSTLookup myrofstlookup = itm.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(itm.MyDocVersion);
|
||||
List<string> roTitleList = myrofstlookup.GetROTitleAndGroupPath(roid);
|
||||
for (int cnt = 0; cnt < roTitleList.Count; cnt++)
|
||||
{
|
||||
|
@ -926,7 +926,7 @@ namespace Volian.Print.Library
|
||||
}
|
||||
private string ROLookup(string accpageid, string multiid, string deflt)
|
||||
{
|
||||
ROFSTLookup myLookup = MySection.MyDocVersion.DocVersionAssociations[0].MyROFst.ROFSTLookup;
|
||||
ROFSTLookup myLookup = MySection.MyDocVersion.DocVersionAssociations[0].MyROFst.GetROFSTLookup(MySection.MyDocVersion);
|
||||
string accpgid = accpageid;
|
||||
accpgid = accpgid.Replace("-HIGH", "-HI").Replace("-LOW", "-LO").Replace("_HIGH", "-HI").Replace("_LOW", "-LO").Replace(@"\u8209?", "-");
|
||||
string val = myLookup.GetROValueByAccPagID("<" + accpgid + "." + multiid + ">", MySection.MyDocVersion.DocVersionConfig.RODefaults_setpointprefix, MySection.MyDocVersion.DocVersionConfig.RODefaults_graphicsprefix);
|
||||
|
@ -1729,8 +1729,8 @@ namespace Volian.Print.Library
|
||||
// DocVersionInfo dvi = proc.ActiveParent as DocVersionInfo;
|
||||
DocVersionInfo dvi = proc.MyDocVersion;
|
||||
ROFstInfo rofst = dvi.DocVersionAssociations[0].MyROFst;
|
||||
rofst.docVer = dvi;
|
||||
ROFSTLookup lookup = rofst.ROFSTLookup;
|
||||
//rofst.docVer = dvi;
|
||||
ROFSTLookup lookup = rofst.GetROFSTLookup(dvi);
|
||||
string linkInfoText = itemInfo.MyContent.Text.Replace(@"\v ", "");
|
||||
Match m = Regex.Match(linkInfoText, @"(.*)[#]Link:([A-Za-z]*):(.*)");
|
||||
if (m.Groups.Count < 4)
|
||||
|
Loading…
x
Reference in New Issue
Block a user